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