From: Marius Gavrilescu Date: Wed, 25 Feb 2015 18:02:08 +0000 (+0200) Subject: Make editorials private before contest start X-Git-Url: http://git.ieval.ro/?p=plack-app-gruntmaster.git;a=commitdiff_plain;h=90f613d3964e01ed8cc18ca07a89ffff87f72f4c Make editorials private before contest start --- diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index a7e4e1d..2c3b2a2 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -165,7 +165,7 @@ sub dispatch_request{ }, sub (/ed/:contest) { - forbid contest->is_running; + forbid !contest->is_finished; response ed => 'Editorial of ' . contest->name, db->problem_list(contest => $_{contest}, solution => 1); },