Fix condition check for public evidence access method
This commit is contained in:
parent
fbac5fdadb
commit
12f7832444
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@
|
||||||
$authenticatedOperator = FederationServer::getAuthenticatedOperator(false);
|
$authenticatedOperator = FederationServer::getAuthenticatedOperator(false);
|
||||||
$includeConfidential = false;
|
$includeConfidential = false;
|
||||||
|
|
||||||
if(!Configuration::getServerConfiguration()->isPublicEvidence() && $authenticatedOperator === null)
|
if(!Configuration::getServerConfiguration()->isEvidencePublic() && $authenticatedOperator === null)
|
||||||
{
|
{
|
||||||
throw new RequestException('Unauthorized: You must be authenticated to list evidence', 401);
|
throw new RequestException('Unauthorized: You must be authenticated to list evidence', 401);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue