async fn check_invite_permitted( services: &Services, body: &Args<Request>, invited_user: &UserId, ) -> Result<()>