Revert "attempted fix of null token perm calls - small tweak"
authorChris Sharp <csharp@georgialibraries.org>
Fri, 27 Jan 2023 20:38:18 +0000 (15:38 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 27 Jan 2023 20:38:18 +0000 (15:38 -0500)
This reverts commit d1c82bae2dfbf010992ca41963777b1148b50549.

Open-ILS/web/js/ui/default/staff/services/auth.js

index 4cc0280..e1bb7e8 100644 (file)
@@ -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) {
+       if (!egAuth.token || egAuth.token() === null) {
           return null;
        }
         // as called, this method will return the top-most org unit of the