Fix login issue when admin is revoked

If this ex-admin user had installed an app, then we try to get app details
(since he is the owner) and we go into a loop
This commit is contained in:
Girish Ramakrishnan
2019-07-02 18:28:34 -07:00
parent 9515a060ab
commit ae07c7934e

View File

@@ -1494,7 +1494,7 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
if (error) return callback(error);
asyncForEach(apps, function (app, iteratorCallback) {
var canManageApp = that._userInfo.admin || that._userInfo.id === app.ownerId;
var canManageApp = that._userInfo.admin;
if (!canManageApp) {
that._updateAppCache(app);