X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=aa473d866c1376d349c722c053329af5a3338232;hb=44397e8ab2732248e68f08ba72172b7055492a44;hp=80bcc1a9c130563aacdce3ac9b72aaade7d33d6b;hpb=f2d78743a891311cf02a3a80a60c8a1ddc72b98e;p=gruntmaster-page.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 80bcc1a..aa473d8 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; my $pblist = db->problem_list(contest => $_{contest}, solution => 1); response ed => 'Editorial of ' . contest->name, {%$pblist, editorial => contest->editorial}; },