##// END OF EJS Templates
Merged r12138, r12149, r12156 and r12157 from trunk to 2.3-stable (#14931)...
Merged r12138, r12149, r12156 and r12157 from trunk to 2.3-stable (#14931) scm: fix annotate error with non ASCII author on Ruby 1.9 and Ruby 2.0. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/2.3-stable@12160 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r3834:c090d115e2bd
r11930:0a25ee385f5e
Show More
permissions.rake
9 lines | 369 B | text/x-ruby | RubyLexer
/ lib / tasks / permissions.rake
Eric Davis
Added a rake task to display permissions....
r3834 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 {|a,b| a.name.to_s <=> b.name.to_s }.each do |permission|
puts ":#{permission.name} - #{permission.actions.join(', ')}"
end
end
end