view .svn/pristine/58/58798d95d2677f7c2652f875b5506cce3ae90864.svn-base @ 1368:987e71e73116 bibliography_testing

Setup of testing framework for the bibliography plugin.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Tue, 20 Aug 2013 18:00:06 +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