]> iEval git - plack-app-gruntmaster.git/blobdiff - lib/Plack/App/Gruntmaster.pm
Require admin to list problems of pending contests
[plack-app-gruntmaster.git] / lib / Plack / App / Gruntmaster.pm
index bd8a90469fc79155ff223a18b1b7b8c7e7da2b20..00f9b0f52c39d133f0e0903544e3283c634067fe 100644 (file)
@@ -147,12 +147,13 @@ sub dispatch_request{
 
                sub (/us/)                                        { response us => 'Users', {us => db->user_list} },
                sub (/ct/  + ?:owner~)                            { response ct => 'Contests', db->contest_list(%_) },
-               sub (/log/ + ?:contest~&:owner~&:page~&:problem~&:private~) {
+               sub (/log/ + ?:contest~&:owner~&:page~&:problem~&:private~&:result~) {
                        forbid $_{private};
                        response log => 'Job list', {%{db->job_list(%_)}, maybe contest => $_{contest},}
                },
                sub (/pb/  + ?:owner~&:contest~&:private~)                  {
                        forbid $_{private};
+                       forbid contest->is_pending;
                        response pb => 'Problems', db->problem_list(%_)
                },
 
This page took 0.02469 seconds and 4 git commands to generate.