Signed-off-by: Jeff Davis <jeff.davis@bc.libraries.coop>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
// 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;