Fix condition check for public audit logs access
This commit is contained in:
parent
352e23d27d
commit
f8952aafa6
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue