Don't redirect from user#terms to login if the user is logged in
This commit is contained in:
parent
25720e3ee3
commit
a8d65b8dbf
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ class UserController < ApplicationController
|
|||
if @user and @user.terms_agreed?
|
||||
# Already agreed to terms, so just show settings
|
||||
redirect_to :action => :account, :display_name => @user.display_name
|
||||
elsif session[:new_user].nil?
|
||||
elsif @user.nil? and session[:new_user].nil?
|
||||
redirect_to :action => :login, :referer => request.fullpath
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue