Redirect to home page on denied access (fixes #237).

This commit is contained in:
Robert Waltemath 2014-01-03 13:51:00 +01:00
parent 428678fe49
commit 03f61668aa

View file

@ -25,8 +25,7 @@ class ApplicationController < ActionController::Base
helper_method :current_user
def deny_access
session[:return_to] = request.original_url
redirect_to login_url, :alert => I18n.t('application.controller.error_denied')
redirect_to root_url, :alert => I18n.t('application.controller.error_denied')
end
private