saasforge / open-source-saas-boilerpate

Free SaaS boilerplate (Python/PostgreSQL/ReactJS/Webpack)
https://www.saasforge.dev
MIT License
818 stars 120 forks source link

[Feature Request] Teams/Companies and RBAC #3

Open mattp95 opened 4 years ago

mattp95 commented 4 years ago

Hi there,

Have you considered moving permissions to the principle of a company and multiple users being a member of that company in the capacity of a given role.

For example Joe is the 'owner' of company 1 and company 2, Jane is a manager in company 1, Josie is an accounts person who needs billing only access to company 2. The owner can assign roles to users within that company. The company can be renamed ect.

saasforge commented 4 years ago

Not sure that I understand you. What is the "company" and how it's related to the SaaS project?

mattp95 commented 4 years ago

The 'Company' is a customer of the SAAS Provider, for B2B saas rather than B2C (i.e a user is a customer of the SAAS Provider.

Within that RBAC, so that at accounts person can access billing page only, CEO can access all parts.

mattp95 commented 4 years ago

For Example in these projects you can see how it is implemeneted: https://saasstartupkit.com/examples/app/users https://github.com/staart/api https://github.com/archonic/limestone-accounts

saasforge commented 4 years ago

Great, thanks! Will definitely consider adding this feature.