Don't fail on zero configuration (Closes: #1030)

This commit is contained in:
Xavier Guimard 2016-05-31 05:27:58 +00:00
parent 181461e2f7
commit 04846adaa5

View File

@ -27,7 +27,7 @@ sub init {
"Unable to protect this app ($Lemonldap::NG::Common::Conf::msg)");
return 0;
}
$self->portal( $self->api->tsv->{portal}->() );
eval { $self->portal( $self->api->tsv->{portal}->() ) };
my $rule =
$self->{protection} || $self->api->localConfig->{protection} || '';
$self->rule(