From: Chris Sharp Date: Fri, 27 Jan 2023 20:40:31 +0000 (-0500) Subject: LP#1990306: Also check for authtoken at the auth service level X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0d4e329955f773a44e1443c5d04c4d3b39e1d93d;p=evergreen%2Ftadl.git 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 --- 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)) {