X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=aa473d866c1376d349c722c053329af5a3338232;hb=f2ea44d7760ab1a725cac836fff9e7cd5c893700;hp=a7e4e1dd52dc63c335482347c70359aedd42c400;hpb=1bc7c028ecfdd1cb24ba0b01317bfda06b441a69;p=gruntmaster-page.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index a7e4e1d..aa473d8 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -165,8 +165,9 @@ sub dispatch_request{ }, sub (/ed/:contest) { - forbid contest->is_running; - response ed => 'Editorial of ' . contest->name, db->problem_list(contest => $_{contest}, solution => 1); + forbid !contest->is_finished; + my $pblist = db->problem_list(contest => $_{contest}, solution => 1); + response ed => 'Editorial of ' . contest->name, {%$pblist, editorial => contest->editorial}; }, sub (/login) {