diff --git a/webapp/src/Controller/API/TeamController.php b/webapp/src/Controller/API/TeamController.php index 27788adb34..43a16a5bf4 100644 --- a/webapp/src/Controller/API/TeamController.php +++ b/webapp/src/Controller/API/TeamController.php @@ -84,7 +84,7 @@ public function __construct( )] public function listAction(Request $request): Response { - if (!$this->config->get('enable_ranking') && !$this->dj->checkrole('jury')) { + if (!$this->config->get('enable_ranking') && !$this->dj->checkrole('api_reader')) { throw new BadRequestHttpException("teams list not available."); } return parent::performListAction($request);