From: Marius Gavrilescu Date: Fri, 14 Feb 2014 17:44:45 +0000 (+0200) Subject: Do not mark problems as open before contest start X-Git-Url: http://git.ieval.ro/?p=gruntmaster-page.git;a=commitdiff_plain;h=6cfb28a02398f3759d43998206ab86bc6adfb1f6 Do not mark problems as open before contest start --- diff --git a/lib/Gruntmaster/Page/Pb/Entry.pm b/lib/Gruntmaster/Page/Pb/Entry.pm index 8b770ef..4cf007e 100644 --- a/lib/Gruntmaster/Page/Pb/Entry.pm +++ b/lib/Gruntmaster/Page/Pb/Entry.pm @@ -13,7 +13,7 @@ sub _generate{ my ($self, $htc, $lang, $env, $contest, $id) = @_; debug $env => "language is '$lang', contest is '$contest', id is '$id'"; my $user = $env->{REMOTE_USER}; - if ($contest && $user) { + if ($contest && $user && time >= contest_start $contest) { local $Gruntmaster::Data::contest = $contest; mark_open $id, $user; debug $env => "Marking problem $id of contest $contest open by $user";