diff --git a/src/Controller/MemberSearchByLicenceOrName.php b/src/Controller/MemberSearchByLicenceOrName.php index 8013a0b..ff4be46 100644 --- a/src/Controller/MemberSearchByLicenceOrName.php +++ b/src/Controller/MemberSearchByLicenceOrName.php @@ -17,7 +17,7 @@ public function __invoke(Request $request, MemberRepository $memberRepository, S $members = $memberRepository->findByLicenceOrName($query); return new Response($serializer->serialize($members, 'json', [ - 'groups' => 'autocomplete' + 'groups' => ['autocomplete', 'common-read'] ])); }