Portal grant function returns -1 on undefined vhost. It should return 0.
We have a grant function in _LibAccess module. In this method, we have two pieces of code to manage undefined vhost:
return -1 unless ( defined( $defaultCondition->{$vhost} ) );
{code}
And:
{code}
unless ( $defaultCondition->{$vhost} ) {
$self->lmLog(
"Application $uri did not match any configured virtual host",
'warn' );
return 0;
}
I think we should remove the first test, and let just return values be 0 or 1.