To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / 6d / 6d6109d0a05e56194e4d35c31ae6b55d51c938dc.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (312 Bytes)

1
class AddViewWikiEditsPermission < ActiveRecord::Migration
2
  def self.up
3
    Role.find(:all).each do |r|
4
      r.add_permission!(:view_wiki_edits) if r.has_permission?(:view_wiki_pages)
5
    end
6
  end
7

    
8
  def self.down
9
    Role.find(:all).each do |r|
10
      r.remove_permission!(:view_wiki_edits)
11
    end
12
  end
13
end