- Strapi Version: 4.1.11
- Operating System: OS 12.3.1
- Database: mysql
- Node Version: v14.18.2
- NPM Version: 6.14.15
- Yarn Version: 1.22.17
I was trying to integrate a system that basically allows me to have two types of user roles, “Super-admin” and “Admin”.
Super-admins can perform CRUD operations in the various tables,
In the same way, admins can do CRUD operations but only content related to them.
I have two tables “PRODUCT” and “STORE”. Each product is related to the stores, each store is related to the users (from admin).
When the “Super-Admin” users log in, they can see all the products of all the “STORE”
When “ADMIN” users log in, they can only see products associated with their “STORE”
Thanks for your help!