Require admin to list problems of pending contests
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Mar 2015 08:08:00 +0000 (10:08 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 8 Mar 2015 08:08:00 +0000 (10:08 +0200)
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.009774 seconds and 4 git commands to generate.