Skip to content

Commit e14620c

Browse files
committed
fix: Only list remnants as disabled if option is enabled
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent edd59ee commit e14620c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

apps/user_ldap/lib/User_Proxy.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,9 @@ public function setUserEnabled(string $uid, bool $enabled, callable $queryDataba
440440
}
441441

442442
public function getDisabledUserList(?int $limit = null, int $offset = 0, string $search = ''): array {
443+
if ((int)$this->getAccess(array_key_first($this->backends) ?? '')->connection->markRemnantsAsDisabled !== 1) {
444+
return [];
445+
}
443446
$disabledUsers = $this->deletedUsersIndex->getUsers();
444447
if ($search !== '') {
445448
$disabledUsers = array_filter(

0 commit comments

Comments
 (0)