From a92475913aaa4d7eaa7cc27f8a57cb751f2a4651 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Sat, 23 Jun 2018 23:08:03 +0800 Subject: [PATCH] small fix --- app/controllers/pseudo_session_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/pseudo_session_controller.rb b/app/controllers/pseudo_session_controller.rb index 478870b..c1fee63 100644 --- a/app/controllers/pseudo_session_controller.rb +++ b/app/controllers/pseudo_session_controller.rb @@ -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