Fix dashboard crash when installing app with no addons
This commit is contained in:
@@ -2662,7 +2662,7 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
|
||||
apps = apps.concat(applinks);
|
||||
|
||||
async.eachLimit(apps, 20, function (app, iteratorCallback) {
|
||||
app.ssoAuth = (app.manifest.addons['ldap'] || app.manifest.addons['oidc'] || app.manifest.addons['proxyAuth']) && app.sso;
|
||||
app.ssoAuth = app.sso && (app.manifest.addons['ldap'] || app.manifest.addons['oidc'] || app.manifest.addons['proxyAuth']); // checking app.sso first ensures app.manifest.addons is not null
|
||||
|
||||
if (app.accessLevel !== 'operator' && app.accessLevel !== 'admin') { // only fetch if we have permissions
|
||||
app.progress = 0;
|
||||
|
||||
Reference in New Issue
Block a user