From ae07c7934e613df0f6e3d489360b292df10faee1 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 2 Jul 2019 18:28:34 -0700 Subject: [PATCH] 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 --- src/js/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/client.js b/src/js/client.js index 3a14bc9f1..0e24df663 100644 --- a/src/js/client.js +++ b/src/js/client.js @@ -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);