Commit d1136112 authored by Xavier Guimard's avatar Xavier Guimard

Authorize access when rule is set to none even if conf is bad

parent 63429e9d
......@@ -21,9 +21,9 @@ sub new {
# Get access control rule
my $rule = $self->{protection} || $localConfig->{protection};
$rule =~ s/^rule\s*:?\s*//;
return $self if ( $rule eq "none" );
$rule =
$rule eq "none" ? "skip"
: $rule eq "authenticate" ? "accept"
$rule eq "authenticate" ? "accept"
: $rule eq "manager" ? ""
: $rule;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment