X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FPlack%2FApp%2FGruntmaster.pm;h=f32c606866244604e080ca7bfae792a4b4420d71;hb=2ca1b4a666cf74b149a8959a10ca12424d8ea01d;hp=00f9b0f52c39d133f0e0903544e3283c634067fe;hpb=2420da56ee0d81b37ec9f869a688ce54e36c1e81;p=gruntmaster-page.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(%_) },