membership feature request: subscription-specific invite codes

I'd like to be able to make a subscription publicly viewable, but restrict access.

A subscription is a class in the site I'm building. Some classes have prerequisites. Requiring an invite code for those subscriptions would be the simplest method of limiting access to those who have completed the prerequisite course.