Fix condition check for public audit logs access method

This commit is contained in:
netkas 2025-06-05 15:07:21 -04:00
parent f8952aafa6
commit fbac5fdadb
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -18,7 +18,7 @@
public static function handleRequest(): void public static function handleRequest(): void
{ {
$authenticatedOperator = FederationServer::getAuthenticatedOperator(false); $authenticatedOperator = FederationServer::getAuthenticatedOperator(false);
if(!Configuration::getServerConfiguration()->isPublicAuditLogs() && $authenticatedOperator === null) if(!Configuration::getServerConfiguration()->isAuditLogsPublic() && $authenticatedOperator === null)
{ {
throw new RequestException('Unauthorized: Public audit logs are disabled and no operator is authenticated', 403); throw new RequestException('Unauthorized: Public audit logs are disabled and no operator is authenticated', 403);
} }