Fix condition check for public audit logs access method
This commit is contained in:
parent
f8952aafa6
commit
fbac5fdadb
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
|||
public static function handleRequest(): void
|
||||
{
|
||||
$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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue