view .svn/pristine/6d/6d6109d0a05e56194e4d35c31ae6b55d51c938dc.svn-base @ 1477:f2ad2199b49a bibplugin_integration

Close obsolete branch bibplugin_integration
author Chris Cannam
date Fri, 30 Nov 2012 14:41:31 +0000
parents cbb26bc654de
children
line wrap: on
line source
class AddViewWikiEditsPermission < ActiveRecord::Migration
  def self.up
    Role.find(:all).each do |r|
      r.add_permission!(:view_wiki_edits) if r.has_permission?(:view_wiki_pages)
    end
  end

  def self.down
    Role.find(:all).each do |r|
      r.remove_permission!(:view_wiki_edits)
    end
  end
end