mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 00:36:14 +02:00
Patch by Pavel Rosický. git-svn-id: https://svn.redmine.org/redmine/trunk@22495 e93f8b46-1217-0410-a6f0-8f06a7374b81
14 lines
324 B
Ruby
14 lines
324 B
Ruby
class AddSelectProjectPublicityPermission < ActiveRecord::Migration[6.1]
|
|
def up
|
|
Role.find_each do |r|
|
|
r.add_permission!(:select_project_publicity) if r.permissions.include?(:edit_project)
|
|
end
|
|
end
|
|
|
|
def down
|
|
Role.find_each do |r|
|
|
r.remove_permission!(:select_project_publicity)
|
|
end
|
|
end
|
|
end
|