Disable add to cart -button if user doesn't have active subscription

Hi,

How can I disable adding products to the cart if the user doesn’t have an active subscription?

Thanks!