diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-06-12 19:52:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 19:52:39 +0200 |
commit | 9943f3ba465c56341afb4bac003c5c41093120a8 (patch) | |
tree | 01186c01a5ddacb19d2f427c5feb3678d34d932a | |
parent | 82ee83a4649b457fa13545042a9e0e096bbfeee8 (diff) | |
parent | cade682752a29bd507eb26810cda0d2d247915e7 (diff) | |
download | nextcloud-server-9943f3ba465c56341afb4bac003c5c41093120a8.tar.gz nextcloud-server-9943f3ba465c56341afb4bac003c5c41093120a8.zip |
Merge pull request #45774 from nextcloud/backport/45347/stable28
[stable28] 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( |