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 / lib / tasks / permissions.rake @ 1568:bc47b68a9487

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