| 1 | package Apache2::SiteControl::GrantAllRule; | ||
| 2 | |||
| 3 | use 5.008; | ||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | use Carp; | ||
| 7 | use Carp::Assert; | ||
| 8 | use Apache2::SiteControl::Rule; | ||
| 9 | |||
| 10 | use base qw(Apache2::SiteControl::Rule); | ||
| 11 | |||
| 12 | sub new { | ||
| 13 | my $proto = shift; | ||
| 14 | my $class = ref($proto) || $proto; | ||
| 15 | my $this = { }; | ||
| 16 | bless ($this, $class); | ||
| 17 | return $this; | ||
| 18 | } | ||
| 19 | |||
| 20 | sub grants($$$$) | ||
| 21 | { | ||
| 22 | my $this = shift; | ||
| 23 | my $user = shift; | ||
| 24 | my $action = shift; | ||
| 25 | my $resource = shift; | ||
| 26 | |||
| 27 | return "Default is to allow"; | ||
| 28 | } | ||
| 29 | |||
| 30 | sub denies($$$$) | ||
| 31 | { | ||
| 32 | my $this = shift; | ||
| 33 | my $user = shift; | ||
| 34 | my $action = shift; | ||
| 35 | my $resource = shift; | ||
| 36 | |||
| 37 | return 0; | ||
| 38 | } | ||
| 39 | |||
| 40 | 1; | ||
| 41 | |||
| 42 | __END__ |