diff --git a/avRegistration/auth-method-service.js b/avRegistration/auth-method-service.js index 1d0a8a18..3214df99 100644 --- a/avRegistration/auth-method-service.js +++ b/avRegistration/auth-method-service.js @@ -830,13 +830,13 @@ angular.module('avRegistration') var postfix = "_authevent_" + autheventid; // ping daemon is not active for normal users - if (!authmethod.admin) { - //var hasGracefulPeriod = window.sessionStorage.getItem('hasGracefulPeriod'); - //if (hasGracefulPeriod === "true") { + /*if (!authmethod.admin) { + var hasGracefulPeriod = window.sessionStorage.getItem('hasGracefulPeriod'); + if (hasGracefulPeriod === "true") { deferred.reject("not an admin"); return deferred.promise; - //} - } + } + }*/ // if document is hidden, then do not update the cookie, and redirect // to admin logout if cookie expired if (document.visibilityState === 'hidden') { diff --git a/dist/appCommon-v10.4.2.js b/dist/appCommon-v10.4.2.js index 7da7c9ff..2b5622e8 100644 --- a/dist/appCommon-v10.4.2.js +++ b/dist/appCommon-v10.4.2.js @@ -354,7 +354,6 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist return $http.post(url, data); }, authmethod.refreshAuthToken = function(autheventid) { var deferred = $q.defer(), postfix = "_authevent_" + autheventid; - if (!authmethod.admin) return deferred.reject("not an admin"), deferred.promise; if ("hidden" === document.visibilityState) return $cookies.get("auth" + postfix) || $state.go("admin.logout"), deferred.reject("tab not focused"), deferred.promise; var now = Date.now(), sessionStartedAtMs = now;