Mercurial > hg > soundsoftware-site
comparison .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 |
comparison
equal
deleted
inserted
replaced
1297:0a574315af3e | 1298:4f746d8966dd |
---|---|
1 class AddDeleteWikiPagesAttachmentsPermission < ActiveRecord::Migration | |
2 def self.up | |
3 Role.all.each do |r| | |
4 r.add_permission!(:delete_wiki_pages_attachments) if r.has_permission?(:edit_wiki_pages) | |
5 end | |
6 end | |
7 | |
8 def self.down | |
9 Role.all.each do |r| | |
10 r.remove_permission!(:delete_wiki_pages_attachments) | |
11 end | |
12 end | |
13 end |