From d1c82bae2dfbf010992ca41963777b1148b50549 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Thu, 19 Jan 2023 10:56:40 -0500 Subject: [PATCH] attempted fix of null token perm calls - small tweak --- Open-ILS/web/js/ui/default/staff/services/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e1bb7e8f29..4cc028011a 100644 --- a/Open-ILS/web/js/ui/default/staff/services/auth.js +++ b/Open-ILS/web/js/ui/default/staff/services/auth.js @@ -403,7 +403,7 @@ function($q , egNet , egAuth , egOrg) { permList = [permList]; } // some calls are getting this far without a valid auth token - if (!egAuth.token || egAuth.token() === null) { + if (!egAuth.token) { return null; } // as called, this method will return the top-most org unit of the -- 2.11.0