summaryrefslogtreecommitdiffstats
path: root/apps/provisioning_api
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-03-11 17:21:46 -0700
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-03-12 09:01:58 +0000
commit86cdab3c422aaca23c795a3483c96272462cc45b (patch)
tree81bb80dfa9efcac6cdef45f52b9d1bcfe99b0ecb /apps/provisioning_api
parent2fea1bb5438e9f197e836fcddaf73e0c17171816 (diff)
downloadnextcloud-server-86cdab3c422aaca23c795a3483c96272462cc45b.tar.gz
nextcloud-server-86cdab3c422aaca23c795a3483c96272462cc45b.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')
-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 352970faa37..2a7830cda8f 100644
--- a/apps/provisioning_api/lib/Controller/UsersController.php
+++ b/apps/provisioning_api/lib/Controller/UsersController.php
@@ -274,7 +274,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()
)
)
);