Best way to restrict features for a Saas based on account type?

Hi

I am working on a saas app and it has three account types - for the purposes of this question lets say bronze, silver and gold.

Each account type has a restriction of features, for example;

They sit in a Table called “Account_type” and next to each one I have features on or off or as in the above case the number of “Users” allowed etc.

I also have an “Account” table and the account table has the details of the account along with an account number and the id of the corresponding with Bronze, Silver , Gold.

The question: is there an efficient way of restricting my app features in Wappler without having to add in to each server connect a check to see if they have access to the feature before performing an action.

As yo can imagine if you hard code this in it becomes a bit onerous and would be a bit of a nightmare to manage.

What method are others using?

Is there a better method other than the one detailed above?

Any suggestions or what worked for you and what didn’t would be great!

Thank you.

Community Page
Last updated: