annotate .svn/pristine/a3/a364456950eb9dddb03948fc2af9610fa32b4fac.svn-base @ 1298:4f746d8966dd redmine_2.3_integration

Merge from redmine-2.3 branch to create new branch redmine-2.3-integration
author Chris Cannam
date Fri, 14 Jun 2013 09:28:30 +0100
parents 622f24f53b42
children
rev   line source
Chris@1295 1 class AddDeleteWikiPagesAttachmentsPermission < ActiveRecord::Migration
Chris@1295 2 def self.up
Chris@1295 3 Role.all.each do |r|
Chris@1295 4 r.add_permission!(:delete_wiki_pages_attachments) if r.has_permission?(:edit_wiki_pages)
Chris@1295 5 end
Chris@1295 6 end
Chris@1295 7
Chris@1295 8 def self.down
Chris@1295 9 Role.all.each do |r|
Chris@1295 10 r.remove_permission!(:delete_wiki_pages_attachments)
Chris@1295 11 end
Chris@1295 12 end
Chris@1295 13 end