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