@@ 30-39 (lines=10) @@ | ||
27 | ||
28 | final class RaSecondFactorController extends Controller |
|
29 | { |
|
30 | public function collectionAction(Request $request, Institution $institution) |
|
31 | { |
|
32 | $this->denyAccessUnlessGranted(['ROLE_RA']); |
|
33 | ||
34 | $query = $this->buildRaSecondFactorQuery($request, $institution); |
|
35 | ||
36 | $paginator = $this->getService()->search($query); |
|
37 | ||
38 | return JsonCollectionResponse::fromPaginator($paginator); |
|
39 | } |
|
40 | ||
41 | public function exportAction(Request $request, Institution $institution) |
|
42 | { |
|
@@ 41-50 (lines=10) @@ | ||
38 | return JsonCollectionResponse::fromPaginator($paginator); |
|
39 | } |
|
40 | ||
41 | public function exportAction(Request $request, Institution $institution) |
|
42 | { |
|
43 | $this->denyAccessUnlessGranted(['ROLE_RA']); |
|
44 | ||
45 | $query = $this->buildRaSecondFactorQuery($request, $institution); |
|
46 | ||
47 | $results = $this->getService()->searchUnpaginated($query); |
|
48 | ||
49 | return new JsonResponse($results); |
|
50 | } |
|
51 | ||
52 | /** |
|
53 | * @param Request $request |