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