From 0d4e329955f773a44e1443c5d04c4d3b39e1d93d Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Fri, 27 Jan 2023 15:40:31 -0500 Subject: [PATCH] LP#1990306: Also check for authtoken at the auth service level Thank you to Bill Erickson and Jason Stephenson for assistance with this. Signed-off-by: Chris Sharp Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/services/auth.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/web/js/ui/default/staff/services/auth.js b/Open-ILS/web/js/ui/default/staff/services/auth.js index 358c036c9a..04ff9d64e9 100644 --- a/Open-ILS/web/js/ui/default/staff/services/auth.js +++ b/Open-ILS/web/js/ui/default/staff/services/auth.js @@ -396,6 +396,7 @@ function($q , egNet , egAuth , egOrg) { * org list for the requested perm. */ service.hasPermAt = function(permList, asId) { + if (!egAuth.token()) { return $q.when([]) }; var deferred = $q.defer(); var isArray = true; if (!angular.isArray(permList)) { -- 2.11.0