mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
git-svn-id: http://svn.redmine.org/redmine/trunk@17997 e93f8b46-1217-0410-a6f0-8f06a7374b81
10 lines
353 B
Ruby
10 lines
353 B
Ruby
namespace :redmine do
|
|
desc "List all permissions and the actions registered with them"
|
|
task :permissions => :environment do
|
|
puts "Permission Name - controller/action pairs"
|
|
Redmine::AccessControl.permissions.sort_by {|p| p.name.to_s}.each do |permission|
|
|
puts ":#{permission.name} - #{permission.actions.join(', ')}"
|
|
end
|
|
end
|
|
end
|