replace tabs to spaces at db/migrate/097_add_view_wiki_edits_permission.rb (#9510)
Contributed by Igor Zubkov. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7758 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
cedeee2e16
commit
47bcd7f3c3
|
@ -1,13 +1,13 @@
|
||||||
class AddViewWikiEditsPermission < ActiveRecord::Migration
|
class AddViewWikiEditsPermission < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
Role.find(:all).each do |r|
|
Role.find(:all).each do |r|
|
||||||
r.add_permission!(:view_wiki_edits) if r.has_permission?(:view_wiki_pages)
|
r.add_permission!(:view_wiki_edits) if r.has_permission?(:view_wiki_pages)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.down
|
def self.down
|
||||||
Role.find(:all).each do |r|
|
Role.find(:all).each do |r|
|
||||||
r.remove_permission!(:view_wiki_edits)
|
r.remove_permission!(:view_wiki_edits)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue