Skip to content

Commit

Permalink
Debugging info messages in ability check
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-bernhardt committed Aug 8, 2024
1 parent 9d437d3 commit a6b88fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/controllers/admin/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a6b88fa

Please sign in to comment.