From 2f9c7c38b56af65b0c3164f8c9e8cbb3c5920604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 18 May 2021 19:58:16 +0200 Subject: [PATCH] fix read group on scope --- .../Controller/AccompanyingCourseApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php index 4a4e59f4b..38f09b49e 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseApiController.php @@ -76,7 +76,7 @@ class AccompanyingCourseApiController extends ApiController public function scopeApi($id, Request $request, string $_format): Response { - return $this->addRemoveSomething('scope', $id, $request, $_format, 'scope', Scope::class); + return $this->addRemoveSomething('scope', $id, $request, $_format, 'scope', Scope::class, [ 'groups' => [ 'read' ] ]); } public function commentApi($id, Request $request, string $_format): Response