replace tabs to spaces at db/migrate/096_add_commit_access_permission.rb (#9510)
Contributed by Igor Zubkov. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7757 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
67ac04e49a
commit
cedeee2e16
|
@ -1,14 +1,13 @@
|
||||||
class AddCommitAccessPermission < ActiveRecord::Migration
|
class AddCommitAccessPermission < ActiveRecord::Migration
|
||||||
|
|
||||||
def self.up
|
def self.up
|
||||||
Role.find(:all).select { |r| not r.builtin? }.each do |r|
|
Role.find(:all).select { |r| not r.builtin? }.each do |r|
|
||||||
r.add_permission!(:commit_access)
|
r.add_permission!(:commit_access)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
Role.find(:all).select { |r| not r.builtin? }.each do |r|
|
Role.find(:all).select { |r| not r.builtin? }.each do |r|
|
||||||
r.remove_permission!(:commit_access)
|
r.remove_permission!(:commit_access)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue