]> iEval git - gruntmaster-page.git/commitdiff
Remove unnecessary forbids
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 3 Mar 2015 17:04:17 +0000 (19:04 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 3 Mar 2015 17:04:17 +0000 (19:04 +0200)
lib/Plack/App/Gruntmaster.pm

index 814c70ff273ac8108cf31fad3eb736323cd6d008..bd8a90469fc79155ff223a18b1b7b8c7e7da2b20 100644 (file)
@@ -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 {
This page took 0.030453 seconds and 4 git commands to generate.