Remove unnecessary parameter from getAuthenticatedOperator in ListAuditLogs

This commit is contained in:
netkas 2025-06-06 13:02:29 -04:00
parent a18178f764
commit 4817c15338
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -16,7 +16,7 @@
*/ */
public static function handleRequest(): void public static function handleRequest(): void
{ {
$authenticatedOperator = FederationServer::getAuthenticatedOperator(false); $authenticatedOperator = FederationServer::getAuthenticatedOperator();
if(!Configuration::getServerConfiguration()->isAuditLogsPublic() && $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);