Skip to content

Commit 77d2d3c

Browse files
committed
fix(settings): Fix always empty disabled users list for subadmins
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent f99b820 commit 77d2d3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/provisioning_api/lib/Controller/UsersController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public function getDisabledUsersDetails(?int $limit = null, int $offset = 0): Da
256256
fn (IUser $user): string => $user->getUID(),
257257
array_filter(
258258
$group->searchUsers('', ($tempLimit === null ? null : $tempLimit - count($users))),
259-
fn (IUser $user): bool => $user->isEnabled()
259+
fn (IUser $user): bool => !$user->isEnabled()
260260
)
261261
)
262262
);

0 commit comments

Comments
 (0)