From 2d074df734e562b0ca4992ea988d7725be58890d Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sun, 8 Mar 2015 10:08:00 +0200 Subject: [PATCH] Require admin to list problems of pending contests --- lib/Plack/App/Gruntmaster.pm | 1 + 1 file changed, 1 insertion(+) 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(%_) }, -- 2.39.2