#465: Skip verify_authorized for 500 and 400 errors
This commit is contained in:
parent
bc4fb57d3b
commit
e4fdec318f
|
@ -20,6 +20,7 @@ class ApplicationController < ActionController::Base
|
||||||
before_action :banned?
|
before_action :banned?
|
||||||
after_action -> { EventLog.current_controller = nil }
|
after_action -> { EventLog.current_controller = nil }
|
||||||
after_action :verify_authorized, unless: :devise_controller?
|
after_action :verify_authorized, unless: :devise_controller?
|
||||||
|
skip_after_action :verify_authorized, only: %i(render_500 render_404)
|
||||||
|
|
||||||
helper_method :get_owner
|
helper_method :get_owner
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue