Mercurial > hg > soundsoftware-site
view lib/tasks/permissions.rake @ 1069:734fe0c6b3e4 bibplugin_cache
added projects_controller_patch (includes the publications helper to the projects controller) - forgot to add this file to version control in the last commit.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 21 Nov 2012 11:24:42 +0000 |
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