Redirect to home page on denied access (fixes #237).
This commit is contained in:
parent
428678fe49
commit
03f61668aa
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue