Method: JunglePath::API::Helpers::AuthLocalUser#set_current_identity

Defined in:
lib/jungle_path/api/helpers/auth_local_user.rb

#set_current_identity(identity, no_cache = false) ⇒ Object



219
220
221
222
223
224
225
226
# File 'lib/jungle_path/api/helpers/auth_local_user.rb', line 219

def set_current_identity identity, no_cache=false
  puts "set_current_identity: #{identity.user.user_name}" if identity and identity.user
  @current_identity = identity
  set_current_user identity.user
  set_current_roles identity.roles
  set_current_auth identity.auth
  set_current_query_filters no_cache
end