From 90f613d3964e01ed8cc18ca07a89ffff87f72f4c Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 25 Feb 2015 20:02:08 +0200 Subject: [PATCH] Make editorials private before contest start --- lib/Plack/App/Gruntmaster.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }, -- 2.39.2