From 86cdab3c422aaca23c795a3483c96272462cc45b Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Mon, 11 Mar 2024 17:21:46 -0700 Subject: [PATCH] fix(settings): Fix always empty disabled users list for subadmins Signed-off-by: Christopher Ng --- apps/provisioning_api/lib/Controller/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 352970faa37a1..2a7830cda8fbe 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -274,7 +274,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() ) ) );