From 1ecf0766d9253070c2ab7174c885eb180339b695 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 23 Jan 2015 16:38:35 +0200 Subject: [PATCH] Allow submitting before contest start --- lib/Gruntmaster/Data.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index f9e0639..b516ea8 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -104,7 +104,7 @@ sub problem_entry { +{ $pb->get_columns, owner_name => $pb->owner->name, - cansubmit => $running || !$contest, + cansubmit => !$contest || !$contest->is_finished, $running ? ( contest_start => $contest->start, contest_stop => $contest->stop, -- 2.39.2