Fix incorrect app password filter
This commit is contained in:
@@ -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' : '';
|
||||
|
||||
Reference in New Issue
Block a user