small fix
This commit is contained in:
parent
969d120bfc
commit
a92475913a
|
@ -2,7 +2,7 @@ class PseudoSessionController < ApplicationController
|
|||
helper_method :current_pseudo_user
|
||||
|
||||
def is_user_authorized?
|
||||
return if current_user.is_admin?
|
||||
return if (OrbitHelper.current_user.is_admin? rescue false)
|
||||
dt = Time.now
|
||||
session[:current_pseudo_user_login_time] = Time.now if session[:current_pseudo_user_login_time].nil?
|
||||
dt1 = session[:current_pseudo_user_login_time] + @module_settings.timeout.minutes
|
||||
|
|
Loading…
Reference in New Issue