From 6cfb28a02398f3759d43998206ab86bc6adfb1f6 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Fri, 14 Feb 2014 19:44:45 +0200 Subject: [PATCH] Do not mark problems as open before contest start --- lib/Gruntmaster/Page/Pb/Entry.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.39.2