mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
16 lines
351 B
Ruby
16 lines
351 B
Ruby
# frozen_string_literal: false
|
|
|
|
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
|