From: Jeff Davis Date: Tue, 18 Oct 2022 19:42:26 +0000 (-0700) Subject: LP#1990306: avoid VIEW_USER perm lookup on egPatronApp startup when we have a null... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=865c1b1172cc96af429da71a0e06d0ea08d433f8;p=evergreen%2Fpines.git 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 --- 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;