attempted fix of null token perm calls - small tweak
authorChris Sharp <csharp@georgialibraries.org>
Thu, 19 Jan 2023 15:56:40 +0000 (10:56 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 19 Jan 2023 15:56:40 +0000 (10:56 -0500)
Open-ILS/web/js/ui/default/staff/services/auth.js

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