Subscription features and user authentication

If a user has already subscribed to the subscription function, how can I authenticate the subscription function by writing in “only when”?