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 4fe3abd commit 93132ffCopy full SHA for 93132ff
webapp/src/Controller/API/ClarificationController.php
@@ -202,6 +202,11 @@ public function addAction(
202
if ($this->isGranted('ROLE_API_WRITER')) {
203
try {
204
$time = Utils::toEpochFloat($timeString);
205
+ if ($contest->getStartTime() > $time) {
206
+ throw new BadRequestHttpException(
207
+ "Sending clarifications before the contest is only possible via the UI."
208
+ );
209
+ }
210
} catch (Exception) {
211
throw new BadRequestHttpException(sprintf("Can not parse time '%s'.", $timeString));
212
}
0 commit comments