We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 039a23f commit 360aee6Copy full SHA for 360aee6
webapp/src/Controller/API/SubmissionController.php
@@ -455,7 +455,8 @@ protected function getQueryBuilder(Request $request): QueryBuilder
455
456
// If an ID has not been given directly, only show submissions before contest end.
457
// This allows us to use eventlog on too-late submissions while not exposing them in the API directly.
458
- if (!$request->attributes->has('id') && !$request->query->has('ids') && !$this->dj->checkrole('admin')) {
+ if (!$request->attributes->has('id') && !$request->query->has('ids') &&
459
+ !($this->dj->checkrole('admin') || $this->dj->checkrole('judgehost'))) {
460
$queryBuilder->andWhere('s.submittime < c.endtime');
461
}
462
0 commit comments