view lib/tasks/permissions.rake @ 1582:f26dc3004b3f dockerise

A currently-failing attempt to get this setup working on Centos 7. Stalling on the problem of getting a recent enough system Ruby
author Chris Cannam
date Tue, 15 Aug 2017 16:26:46 +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