espelhamento de
https://github.com/redmine/redmine.git
sincronizado 2024-07-27 07:37:45 +02:00
3b55f65407
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
14 linhas
319 B
Ruby
14 linhas
319 B
Ruby
class AddCommitAccessPermission < ActiveRecord::Migration[4.2]
|
|
def self.up
|
|
Role.all.select { |r| not r.builtin? }.each do |r|
|
|
r.add_permission!(:commit_access)
|
|
end
|
|
end
|
|
|
|
def self.down
|
|
Role.all.select { |r| not r.builtin? }.each do |r|
|
|
r.remove_permission!(:commit_access)
|
|
end
|
|
end
|
|
end
|