Ensure authorization checks happen for all controller methods
This commit is contained in:
parent
fc6209dc07
commit
131fd76cae
1 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@ class ApplicationController < ActionController::Base
|
|||
protect_from_forgery :with => :exception
|
||||
|
||||
rescue_from CanCan::AccessDenied, :with => :deny_access
|
||||
check_authorization
|
||||
|
||||
before_action :fetch_body
|
||||
around_action :better_errors_allow_inline, :if => proc { Rails.env.development? }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue