diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2024-06-06 08:47:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-06 08:47:49 -0700 |
commit | ca371c18ff6991587d9d8950da1fb7d7672d0b44 (patch) | |
tree | 98652abef722c3953b8b3a098113c16dca5a4cf0 | |
parent | d2e4af137f606d513aeb5da582d742fd2ca4d604 (diff) | |
parent | e14620cb15f66c9137c5b30946970a23dbbd9b4a (diff) | |
download | nextcloud-server-ca371c18ff6991587d9d8950da1fb7d7672d0b44.tar.gz nextcloud-server-ca371c18ff6991587d9d8950da1fb7d7672d0b44.zip |
Merge pull request #45347 from nextcloud/fix/ldap-list-remnant-as-disabled
fix: Only list remnants as disabled if option is enabled
-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( |