diff --git a/src/FederationServer/Methods/Attachments/DeleteAttachment.php b/src/FederationServer/Methods/Attachments/DeleteAttachment.php index 18e4bf1..6f15f60 100644 --- a/src/FederationServer/Methods/Attachments/DeleteAttachment.php +++ b/src/FederationServer/Methods/Attachments/DeleteAttachment.php @@ -20,7 +20,7 @@ */ public static function handleRequest(): void { - $authenticatedOperator = FederationServer::getAuthenticatedOperator(); + $authenticatedOperator = FederationServer::requireAuthenticatedOperator(); // Ensure the authenticated operator has permission to delete operators. if(!$authenticatedOperator->canManageBlacklist())