diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-05-16 10:58:28 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-06-06 16:48:27 +0200 |
commit | e14620cb15f66c9137c5b30946970a23dbbd9b4a (patch) | |
tree | 32e41fc7f01f74fd9619fc0b137763df691b465b /apps | |
parent | edd59ee052e6e6ab775d108c77c0ca20bb622885 (diff) | |
download | nextcloud-server-e14620cb15f66c9137c5b30946970a23dbbd9b4a.tar.gz nextcloud-server-e14620cb15f66c9137c5b30946970a23dbbd9b4a.zip |
fix: Only list remnants as disabled if option is enabled
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/user_ldap/lib/User_Proxy.php | 3 |
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 afa4a194182..df9e025f871 100644 --- a/apps/user_ldap/lib/User_Proxy.php +++ b/apps/user_ldap/lib/User_Proxy.php @@ -440,6 +440,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( |