Commit 63429e9d authored by Xavier Guimard's avatar Xavier Guimard

Use $self->{protection} if defined

Else, manager protection is not used: section is set to [handler]
parent 36311a0d
......@@ -19,7 +19,7 @@ sub new {
Lemonldap::NG::Handler::SharedConf->init($args);
# Get access control rule
my $rule = $localConfig->{protection};
my $rule = $self->{protection} || $localConfig->{protection};
$rule =~ s/^rule\s*:?\s*//;
$rule =
$rule eq "none" ? "skip"
......
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