mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix: Only list remnants as disabled if option is enabled
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
edd59ee052
commit
e14620cb15
1 changed files with 3 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue