summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-05-16 10:58:28 +0200
committerLouis Chemineau <louis@chmn.me>2024-06-12 09:59:22 +0200
commitcade682752a29bd507eb26810cda0d2d247915e7 (patch)
treea9f10fd1d17a441c2a75ca2abb7dedebdbf6a5af
parent21ef938fbc4725b838144490a68ab34ef022d8bb (diff)
downloadnextcloud-server-cade682752a29bd507eb26810cda0d2d247915e7.tar.gz
nextcloud-server-cade682752a29bd507eb26810cda0d2d247915e7.zip
fix: Only list remnants as disabled if option is enabled
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com> Signed-off-by: Louis Chemineau <louis@chmn.me>
-rw-r--r--apps/user_ldap/lib/User_Proxy.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/User_Proxy.php b/apps/user_ldap/lib/User_Proxy.php
index 96cd7b47637..7b927100fe5 100644
--- a/apps/user_ldap/lib/User_Proxy.php
+++ b/apps/user_ldap/lib/User_Proxy.php
@@ -464,6 +464,9 @@ class User_Proxy extends Proxy implements IUserBackend, UserInterface, IUserLDAP
}
public function getDisabledUserList(?int $limit = null, int $offset = 0, string $search = ''): array {
+ if ((int)$this->getAccess(array_key_first($this->backends) ?? '')->connection->markRemnantsAsDisabled !== 1) {
+ return [];
+ }
$disabledUsers = $this->deletedUsersIndex->getUsers();
if ($search !== '') {
$disabledUsers = array_filter(