Skip to content

Commit

Permalink
fix(settings): Fix always empty disabled users list for subadmins
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Ng <chrng8@gmail.com>
  • Loading branch information
Pytal committed Mar 12, 2024
1 parent f99b820 commit 77d2d3c
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 77d2d3c

Please sign in to comment.