Fix condition check for public evidence listing access method

This commit is contained in:
netkas 2025-06-05 15:07:30 -04:00
parent 12f7832444
commit 4c44d8d64f
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -19,7 +19,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);
} }