From: Côme Chilliet Date: Thu, 16 May 2024 08:58:28 +0000 (+0200) Subject: fix: Only list remnants as disabled if option is enabled X-Git-Tag: v30.0.0beta1~371^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F45347%2Fhead;p=nextcloud-server.git fix: Only list remnants as disabled if option is enabled Signed-off-by: Côme Chilliet --- 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(