Fix condition check for public audit logs access

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

View file

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