#465: Skip verify_authorized for 500 and 400 errors
This commit is contained in:
parent
bc4fb57d3b
commit
e4fdec318f
|
@ -19,7 +19,8 @@ class ApplicationController < ActionController::Base
|
||||||
only: [:create, :destroy, :open_id, :cancel, :publish, :change_visibility] # :update
|
only: [:create, :destroy, :open_id, :cancel, :publish, :change_visibility] # :update
|
||||||
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