Skip to content

Commit e4e8847

Browse files
committed
Allow any daemon with read access access for ranking
Otherwise DOMlogo can't get the data with local judgehosts against an online (non)ranked contest. The alternative of default allowing the judgedaemon is worse as it normally doesn't need those credentials so for this case you need to extend that user with API_READER, giving it JURY would give it much more access than we want.
1 parent 4fe3abd commit e4e8847

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webapp/src/Controller/API/TeamController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function __construct(
8484
)]
8585
public function listAction(Request $request): Response
8686
{
87-
if (!$this->config->get('enable_ranking') && !$this->dj->checkrole('jury')) {
87+
if (!$this->config->get('enable_ranking') && !$this->dj->checkrole('api_reader')) {
8888
throw new BadRequestHttpException("teams list not available.");
8989
}
9090
return parent::performListAction($request);

0 commit comments

Comments
 (0)