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 / 7a / 7a02a2b52dbb9fec21affbfddb6cc6bab3abeeb7.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (369 Bytes)

1
namespace :redmine do
2
  desc "List all permissions and the actions registered with them"
3
  task :permissions => :environment do
4
    puts "Permission Name - controller/action pairs"
5
    Redmine::AccessControl.permissions.sort {|a,b| a.name.to_s <=> b.name.to_s }.each do |permission|
6
      puts ":#{permission.name} - #{permission.actions.join(', ')}"
7
    end
8
  end
9
end