From: Andy Allan Date: Wed, 16 Jan 2019 10:45:13 +0000 (+0100) Subject: Ensure authorization checks happen for all controller methods X-Git-Tag: live~2740^2~1 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/131fd76caea18c72d08edfc8b00bc8d29a7cf9bf Ensure authorization checks happen for all controller methods --- diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 38758e1df..fa6d432e9 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -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? }