Mercurial > hg > soundsoftware-site
view .svn/pristine/58/58798d95d2677f7c2652f875b5506cce3ae90864.svn-base @ 1327:287f201c2802 redmine-2.2-integration
Add italic
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 19 Jun 2013 20:56:22 +0100 |
parents | cbb26bc654de |
children |
line wrap: on
line source
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 end def self.down Role.find(:all).each do |r| r.remove_permission!(:delete_wiki_pages_attachments) end end end