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