From 77d2d3cf53b9005fadac8740472aaf620503b6d7 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Mon, 11 Mar 2024 17:21:46 -0700 Subject: 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(-) (limited to 'apps/provisioning_api/lib') diff --git a/apps/provisioning_api/lib/Controller/UsersController.php b/apps/provisioning_api/lib/Controller/UsersController.php index 3d0cbd43124..1833166a4c6 100644 --- a/apps/provisioning_api/lib/Controller/UsersController.php +++ b/apps/provisioning_api/lib/Controller/UsersController.php @@ -256,7 +256,7 @@ class UsersController extends AUserData { 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() ) ) ); -- cgit v1.2.3