Skip to content

Commit

Permalink
#10175 add filter by context to api users
Browse files Browse the repository at this point in the history
  • Loading branch information
forgive38 authored and asmecher committed Jul 9, 2024
1 parent 2c8b7fb commit 5f27f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/v1/users/PKPUserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ public function getMany(Request $request): JsonResponse
->orderBy($orderBy, $orderDirection, [Locale::getLocale(), Application::get()->getRequest()->getSite()->getPrimaryLocale()])
->limit($params['count'] ?? null)
->offset($params['offset'] ?? null)
->filterByStatus($params['status'] ?? $collector::STATUS_ALL);
->filterByStatus($params['status'] ?? $collector::STATUS_ALL)
->filterByContextIds([ $params['contextId'] ]);

$users = $collector->getMany();

Expand Down

0 comments on commit 5f27f71

Please sign in to comment.