lib/lockdown/frameworks/rails/controller.rb in revo-lockdown-1.6.2.1 vs lib/lockdown/frameworks/rails/controller.rb in revo-lockdown-1.6.2.2
- old
+ new
@@ -104,10 +104,15 @@
reset_session
end
respond_to do |format|
format.html do
store_location
- redirect_to Lockdown::System.fetch(:access_denied_path)
+ access_denied_action = Lockdown::System.fetch(:access_denied_action)
+ if access_denied_action && respond_to?(access_denied_action)
+ send(access_denied_action)
+ else
+ redirect_to Lockdown::System.fetch(:access_denied_path)
+ end
return
end
format.xml do
headers["Status"] = "Unauthorized"
headers["WWW-Authenticate"] = %(Basic realm="Web Password")