We've moved discussions to Discord

Plans: is there a way to restrict access to certain features, and limit others?

Sean Drumm
Thinking of typical SaaS plans that offer different features per plan and also limits, is there a simple way to do this with Jumpstart or an additional Gem?

Example

Start plan, $10/month
Single property
Max 5 images per property

Pro plan, $30/month
10 properties
Unlimited images
Ability to access Analytics

Donn Felker
You can use the Pundit gem to perform authorization: https://github.com/varvet/pundit Fairly easy to use.
Sean Drumm
Thanks  Donn Felker  would Pundit offer a way to limit on quotas such as Max X items for a given plan?
Donn Felker
Sean Drumm   Didn't see this/get notified or I missed it. Yes, with Pundit you can check if a user meets certain criteria. If they do, they get access otherwise they dont. Its a much more robust system than a simple "isAdmin?" check. 
Notifications
You’re not receiving notifications from this thread.