replace tabs to spaces at db/migrate/099_add_delete_wiki_pages_attachments_permission.rb (#9510)
Contributed by Igor Zubkov. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7756 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4b38902ef7
commit
67ac04e49a
|
@ -1,13 +1,13 @@
|
||||||
class AddDeleteWikiPagesAttachmentsPermission < ActiveRecord::Migration
|
class AddDeleteWikiPagesAttachmentsPermission < ActiveRecord::Migration
|
||||||
def self.up
|
def self.up
|
||||||
Role.find(:all).each do |r|
|
Role.find(:all).each do |r|
|
||||||
r.add_permission!(:delete_wiki_pages_attachments) if r.has_permission?(:edit_wiki_pages)
|
r.add_permission!(:delete_wiki_pages_attachments) if r.has_permission?(:edit_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!(:delete_wiki_pages_attachments)
|
r.remove_permission!(:delete_wiki_pages_attachments)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue