summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db/migrate/099_add_delete_wiki_pages_attachments_permission.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb b/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb
index 1ff888f3c..9fd986a3c 100644
--- a/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb
+++ b/db/migrate/099_add_delete_wiki_pages_attachments_permission.rb
@@ -1,13 +1,13 @@
class AddDeleteWikiPagesAttachmentsPermission < ActiveRecord::Migration
def self.up
- Role.find(:all).each do |r|
- r.add_permission!(:delete_wiki_pages_attachments) if r.has_permission?(:edit_wiki_pages)
- end
+ Role.find(:all).each do |r|
+ r.add_permission!(:delete_wiki_pages_attachments) if r.has_permission?(:edit_wiki_pages)
+ end
end
def self.down
- Role.find(:all).each do |r|
- r.remove_permission!(:delete_wiki_pages_attachments)
- end
+ Role.find(:all).each do |r|
+ r.remove_permission!(:delete_wiki_pages_attachments)
+ end
end
end