Skip to content

Commit

Permalink
Merge pull request #44140 from nextcloud/fix/subadmin-disabled-users
Browse files Browse the repository at this point in the history
fix(settings): Fix always empty disabled users list for subadmins
  • Loading branch information
Pytal authored Mar 12, 2024
2 parents 9a52728 + 77d2d3c commit c423973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/provisioning_api/lib/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function getDisabledUsersDetails(?int $limit = null, int $offset = 0): Da
fn (IUser $user): string => $user->getUID(),
array_filter(
$group->searchUsers('', ($tempLimit === null ? null : $tempLimit - count($users))),
fn (IUser $user): bool => $user->isEnabled()
fn (IUser $user): bool => !$user->isEnabled()
)
)
);
Expand Down

0 comments on commit c423973

Please sign in to comment.