aboutsummaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api/lib
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-03-11 17:21:46 -0700
committerChristopher Ng <chrng8@gmail.com>2024-03-11 17:21:46 -0700
commit77d2d3cf53b9005fadac8740472aaf620503b6d7 (patch)
tree12df8df9aa3d59f87cffeb8fd9ddfa4d5f89db1a /apps/provisioning_api/lib
parentf99b820cd0e59b75bc8867a03dabc9e28157ccdf (diff)
downloadnextcloud-server-77d2d3cf53b9005fadac8740472aaf620503b6d7.tar.gz
nextcloud-server-77d2d3cf53b9005fadac8740472aaf620503b6d7.zip
fix(settings): Fix always empty disabled users list for subadmins
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r--apps/provisioning_api/lib/Controller/UsersController.php2
1 files changed, 1 insertions, 1 deletions
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()
)
)
);