X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=f32c606866244604e080ca7bfae792a4b4420d71;hb=e892a76a1aed693d33fba7f0015f42824ecf4dbb;hp=490fb44e726794c1d6212283650cf5ae81b2b311;hpb=84899acc134472beb68d9ff03a4da0134b88e2e6;p=plack-app-gruntmaster.git diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 490fb44..f32c606 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -153,6 +153,7 @@ sub dispatch_request{ }, sub (/pb/ + ?:owner~&:contest~&:private~) { forbid $_{private}; + forbid contest && contest->is_pending; response pb => 'Problems', db->problem_list(%_) },