diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2024-06-11 19:30:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 19:30:40 +0200 |
commit | 97f10404b53e66e016a0fbd4a6ba235caf5b114e (patch) | |
tree | fa4a2fd64e008db05315a1af105d9d28b5cdc599 | |
parent | 907a12b51f5a8bae819ab4b8778e92b4931b0888 (diff) | |
parent | cbaba872e178da633ffed17f0bbb73b84a291aba (diff) | |
download | nextcloud-server-97f10404b53e66e016a0fbd4a6ba235caf5b114e.tar.gz nextcloud-server-97f10404b53e66e016a0fbd4a6ba235caf5b114e.zip |
Merge pull request #45773 from nextcloud/backport/45347/stable29
[stable29] 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 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( |