Refactor ListBlacklist to require authentication for listing blacklist records
This commit is contained in:
parent
7ce59fec15
commit
14da271f06
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue