djaodjin / djaodjin-saas

Django application for software-as-service and subscription businesses
Other
564 stars 124 forks source link

URL decorator for an organization subscribed to any plan? #218

Open smirolo opened 5 years ago

smirolo commented 5 years ago

We can see how to restrict access to an URL if an organization is subscribed to a defined plan (i.e “PRO” or “STANDARD” plan) in the rules - i.e. fail_subscription - but we don’t see any way to restrict an URL to a member of an organization subscribed to any plan other than adding an access rules for each plan for that URL. Is there a better way to do it?

smirolo commented 5 years ago

fail_subscription takes an optional plan parameter, so technically it will work for any subscription as well. The feature might not show up in the UI. To investigate.