X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FPage%2FPb%2FEntry.pm;h=4cf007edcd1760d3eaf7dea49298ad942d52265f;hb=fdbf59e5def9cbb4e1c0749f819ba8d946c37725;hp=8b770efe3a24bcc5f193675171a685e364480227;hpb=277f05a743e67e24327bded2a851a8cb998a55d0;p=plack-app-gruntmaster.git 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";