diff --git a/app/controllers/admin/application_controller.rb b/app/controllers/admin/application_controller.rb index 8449926..e8b7dca 100644 --- a/app/controllers/admin/application_controller.rb +++ b/app/controllers/admin/application_controller.rb @@ -18,6 +18,10 @@ def authorize_user end def authorize_action?(resource, action) + Rails.logger.info '================ Checking papers...' + Rails.logger.info "=== Confirming #{action} on #{resource}" + Rails.logger.info "=== Result: #{can? action, resource}" + can? action, resource end