Fix incorrect app password filter

This commit is contained in:
Girish Ramakrishnan
2021-01-17 18:17:15 -08:00
parent 3a031064fb
commit 7835785aac
+3 -2
View File
@@ -425,10 +425,11 @@ angular.module('Application').controller('ProfileController', ['$scope', '$trans
var appsById = {};
$scope.apps.forEach(function (app) {
if (!app.manifest.addons) return;
if (app.manifest.addons.email) return;
var ftp = app.manifest.addons.localstorage && app.manifest.addons.localstorage.ftp;
// ignore apps without ftp and ldap or email
if (!ftp && (!app.manifest.addons.ldap || !app.manifest.addons.proxyAuth || app.manifest.addons.email || !app.sso)) return;
if (!ftp && !(app.sso && (app.manifest.addons.ldap || app.manifest.addons.proxyAuth))) return;
appsById[app.id] = app;
var labelSuffix = ftp ? ' - SFTP' : '';