Refactor ListBlacklist to require authentication for listing blacklist records

This commit is contained in:
netkas 2025-06-06 18:08:42 -04:00
parent 7ce59fec15
commit 14da271f06
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -16,7 +16,7 @@
*/
public static function handleRequest(): void
{
$authenticatedOperator = FederationServer::getAuthenticatedOperator(false);
$authenticatedOperator = FederationServer::getAuthenticatedOperator();
if(!Configuration::getServerConfiguration()->isBlacklistPublic() && $authenticatedOperator === null)
{
throw new RequestException('You must be authenticated to list blacklist records', 401);