From: Marius Gavrilescu Date: Fri, 23 Jan 2015 14:38:35 +0000 (+0200) Subject: Allow submitting before contest start X-Git-Tag: 5999.000_014~97 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=1ecf0766d9253070c2ab7174c885eb180339b695;p=gruntmaster-data.git Allow submitting before contest start --- 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,