sub (/us/) { response us => 'Users', {us => db->user_list} },
sub (/ct/ + ?:owner~) { response ct => 'Contests', db->contest_list(%_) },
- sub (/log/ + ?:contest~&:owner~&:page~&:problem~) { response log => 'Job list', {%{db->job_list(%_)}, maybe contest => $_{contest}} },
- sub (/pb/ + ?:owner~&:contest~) { response pb => 'Problems', {%{db->problem_list(%_)}, maybe contest => $_{contest}} },
+ sub (/log/ + ?:contest~&:owner~&:page~&:problem~&:private~) {
+ forbid $_{private};
+ response log => 'Job list', {%{db->job_list(%_)}, maybe contest => $_{contest}}
+ },
+ sub (/pb/ + ?:owner~&:contest~&private~) {
+ forbid $_{private};
+ response pb => 'Problems', {%{db->problem_list(%_)}, maybe contest => $_{contest}}
+ },
sub (/us/:user) { response us_entry => user->name, db->user_entry($_{user}) },
sub (/ct/:contest) { response ct_entry => contest->name, db->contest_entry($_{contest}) },