]> iEval git - gruntmaster-page.git/blobdiff - lib/Plack/App/Gruntmaster.pm
Require admin to list problems of pending contests
[gruntmaster-page.git] / lib / Plack / App / Gruntmaster.pm
index 490fb44e726794c1d6212283650cf5ae81b2b311..00f9b0f52c39d133f0e0903544e3283c634067fe 100644 (file)
@@ -153,6 +153,7 @@ sub dispatch_request{
                },
                sub (/pb/  + ?:owner~&:contest~&:private~)                  {
                        forbid $_{private};
+                       forbid contest->is_pending;
                        response pb => 'Problems', db->problem_list(%_)
                },
 
This page took 0.017961 seconds and 4 git commands to generate.