small fix

This commit is contained in:
Harry Bomrah 2018-06-23 21:32:52 +08:00
parent 196801878f
commit 969d120bfc
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@ class PseudoSessionController < ApplicationController
helper_method :current_pseudo_user
def is_user_authorized?
return if current_user.is_admin?
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