Fix redirect to terms path when not logged in
This was missed during #3147 since it wasn't covered by a test.
This commit is contained in:
parent
61e963ecdb
commit
36f6d8d85d
2 changed files with 7 additions and 1 deletions
|
@ -30,7 +30,7 @@ class UsersController < ApplicationController
|
|||
# Already agreed to terms, so just show settings
|
||||
redirect_to :action => :account, :display_name => current_user.display_name
|
||||
elsif current_user.nil? && session[:new_user].nil?
|
||||
redirect_to :action => :login, :referer => request.fullpath
|
||||
redirect_to login_path(:referer => request.fullpath)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue