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