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
|
||||
def self.up
|
||||
Role.find(:all).each do |r|
|
||||
r.add_permission!(:view_wiki_edits) if r.has_permission?(:view_wiki_pages)
|
||||
end
|
||||
Role.find(:all).each do |r|
|
||||
r.add_permission!(:view_wiki_edits) if r.has_permission?(:view_wiki_pages)
|
||||
end
|
||||
end
|
||||
|
||||
def self.down
|
||||
Role.find(:all).each do |r|
|
||||
r.remove_permission!(:view_wiki_edits)
|
||||
end
|
||||
Role.find(:all).each do |r|
|
||||
r.remove_permission!(:view_wiki_edits)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue