openstax / openstax_utilities

Utlities for OpenStax sites
MIT License
2 stars 0 forks source link

Add rejection information to require_action_allowed! #13

Closed jpslav closed 9 years ago

jpslav commented 9 years ago

When we raise a SecurityTransgression, give a message that describes the requestor, action, resource so we can log that and figure out what happened.

https://github.com/openstax/openstax_utilities/blob/afdcfff43e6a5a8c3da9285fa939a77128cc9804/lib/openstax/utilities/access_policy.rb#L27

cc @Dantemss