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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user