From: Chris Sharp Date: Thu, 19 Jan 2023 15:56:40 +0000 (-0500) Subject: attempted fix of null token perm calls - small tweak X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d1c82bae2dfbf010992ca41963777b1148b50549;p=evergreen%2Fpines.git attempted fix of null token perm calls - small tweak --- 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