From 865c1b1172cc96af429da71a0e06d0ea08d433f8 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Tue, 18 Oct 2022 12:42:26 -0700 Subject: [PATCH] LP#1990306: avoid VIEW_USER perm lookup on egPatronApp startup when we have a null authtoken Signed-off-by: Jeff Davis Signed-off-by: Chris Sharp Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/web/js/ui/default/staff/circ/patron/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js index fec6e90aef..0fc8841643 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/app.js @@ -70,6 +70,7 @@ angular.module('egPatronApp', ['ngRoute', 'ui.bootstrap', 'egUserBucketMod', // FIXME: the following is really just for PatronMessagesCtrl // and PatronCtrl, so we could refactor to avoid calling it // for every controller + if (!egCore.auth.token()) return go_promise; return egCore.perm.hasPermFullPathAt('VIEW_USER') .then(function(orgList) { hasPermAt['VIEW_USER'] = orgList; -- 2.11.0