spegling av
https://github.com/redmine/redmine.git
synced 2024-08-27 17:54:48 +02:00
![Jean-Philippe Lang](/assets/img/avatar_default.png)
git-svn-id: http://svn.redmine.org/redmine/trunk@13894 e93f8b46-1217-0410-a6f0-8f06a7374b81
16 rader
316 B
Ruby
16 rader
316 B
Ruby
class AddViewIssuesPermission < ActiveRecord::Migration
|
|
def self.up
|
|
Role.reset_column_information
|
|
Role.all.each do |r|
|
|
r.add_permission!(:view_issues)
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
Role.reset_column_information
|
|
Role.all.each do |r|
|
|
r.remove_permission!(:view_issues)
|
|
end
|
|
end
|
|
end
|