]> iEval git - plack-app-gruntmaster.git/commitdiff
Make editorials private before contest start
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 25 Feb 2015 18:02:08 +0000 (20:02 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 25 Feb 2015 18:02:08 +0000 (20:02 +0200)
lib/Plack/App/Gruntmaster.pm

index a7e4e1dd52dc63c335482347c70359aedd42c400..2c3b2a2c6c619b2f916976ad8b4cebbcbfa8d65e 100644 (file)
@@ -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);
                },
 
This page took 0.028458 seconds and 4 git commands to generate.