From: Marius Gavrilescu Date: Sun, 8 Mar 2015 08:08:00 +0000 (+0200) Subject: Require admin to list problems of pending contests X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=2d074df734e562b0ca4992ea988d7725be58890d;p=plack-app-gruntmaster.git Require admin to list problems of pending contests --- diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 490fb44..00f9b0f 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -153,6 +153,7 @@ sub dispatch_request{ }, sub (/pb/ + ?:owner~&:contest~&:private~) { forbid $_{private}; + forbid contest->is_pending; response pb => 'Problems', db->problem_list(%_) },