Skip to content

Commit cbaba87

Browse files
come-ncAndyScherzinger
authored andcommitted
fix: Only list remnants as disabled if option is enabled
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 907a12b commit cbaba87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/user_ldap/lib/User_Proxy.php

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

466466
public function getDisabledUserList(?int $limit = null, int $offset = 0, string $search = ''): array {
467+
if ((int)$this->getAccess(array_key_first($this->backends) ?? '')->connection->markRemnantsAsDisabled !== 1) {
468+
return [];
469+
}
467470
$disabledUsers = $this->deletedUsersIndex->getUsers();
468471
if ($search !== '') {
469472
$disabledUsers = array_filter(

0 commit comments

Comments
 (0)