From: Marius Gavrilescu Date: Sun, 8 Mar 2015 10:13:57 +0000 (+0200) Subject: Fix /pb/ X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=2ca1b4a666cf74b149a8959a10ca12424d8ea01d;p=plack-app-gruntmaster.git Fix /pb/ --- 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(%_) },