Moved back to where(), lookup() is not ready for User.
This commit is contained in:
parent
67db493699
commit
c5d9d7b022
1 changed files with 1 additions and 1 deletions
|
@ -434,7 +434,7 @@ class ClientState
|
|||
return if !session_data
|
||||
return if !session_data[:user]
|
||||
return if !session_data[:user][:id]
|
||||
user = User.lookup( :id => session_data[:user][:id] )
|
||||
user = User.where( :id => session_data[:user][:id] ).first
|
||||
return if !user
|
||||
|
||||
# set cache key
|
||||
|
|
Loading…
Reference in a new issue