From 581a6d30cc891dd4274c19df3ae5f9bfce52bbef Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Tue, 3 Mar 2015 19:04:17 +0200 Subject: [PATCH] Remove unnecessary forbids --- lib/Plack/App/Gruntmaster.pm | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/Plack/App/Gruntmaster.pm b/lib/Plack/App/Gruntmaster.pm index 814c70f..bd8a904 100644 --- a/lib/Plack/App/Gruntmaster.pm +++ b/lib/Plack/App/Gruntmaster.pm @@ -107,18 +107,6 @@ sub dispatch_request{ [200, \@headers, [job->source]] }, - sub (?:contest=) { - return NOT_FOUND if !contest; - forbid contest->is_pending; - response_filter { return shift } - }, - - sub (?:problem=) { - return NOT_FOUND if !problem; - forbid problem->private; - response_filter { return shift } - }, - sub (?:format~) { my $format = lc ($_{format} // ''); response_filter { -- 2.39.2