openstax / openstax_utilities

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

Add a message when require_action_allowed! raises SecurityTransgression #14

Closed karenc closed 9 years ago

karenc commented 9 years ago

It now outputs something like this in the console:

SecurityTransgression ("#<OpenStax::Api::ApiUser:0x0000000f1d9638 @doorkeeper_token=nil, @non_doorkeeper_user_proc=#<Proc:0x0000000f1d9660@/home/karen/.rvm/gems/ruby-2.1.3@tutor/gems/openstax_api-5.4.5/app/controllers/openstax/api/v1/api_controller.rb:36 (lambda)>>" is not allowed to perform "roster" on "#<Entity::Course id: 1, created_at: "2015-07-23 22:01:08", updated_at: "2015-07-23 22:01:08">")

Close #13

karenc commented 9 years ago

Updated.

Could you also have a look at #15?

Dantemss commented 9 years ago

I approve of this PR!

karenc commented 9 years ago

@Dantemss :D