]> iEval git - gruntmaster-page.git/commitdiff
Fix /pb/
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Mar 2015 10:13:57 +0000 (12:13 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Mar 2015 10:13:57 +0000 (12:13 +0200)
lib/Plack/App/Gruntmaster.pm

index 00f9b0f52c39d133f0e0903544e3283c634067fe..f32c606866244604e080ca7bfae792a4b4420d71 100644 (file)
@@ -153,7 +153,7 @@ sub dispatch_request{
                },
                sub (/pb/  + ?:owner~&:contest~&:private~)                  {
                        forbid $_{private};
                },
                sub (/pb/  + ?:owner~&:contest~&:private~)                  {
                        forbid $_{private};
-                       forbid contest->is_pending;
+                       forbid contest && contest->is_pending;
                        response pb => 'Problems', db->problem_list(%_)
                },
 
                        response pb => 'Problems', db->problem_list(%_)
                },
 
This page took 0.023509 seconds and 4 git commands to generate.