aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/user_ldap/lib/User_Proxy.php3
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(