Mercurial > hg > soundsoftware-site
view lib/tasks/permissions.rake @ 1624:76f8f0814e1e live
Use --check to avoid errors when updating in repos with more than one head
author | Chris Cannam |
---|---|
date | Fri, 10 Aug 2018 16:08:05 +0100 |
parents | 1d32c0a0efbf |
children |
line wrap: on
line source
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