Yii2 with RBAC system I planing to develop school Management system and I have one issue I am looking for create school wise RBAC system so every school have own RBAC that’s means each school have own different roles (like… superadmin, admin, teacher, student, accountant etc…) and there access.
Yes but how can we manage the different roles and their own rules as school wise with this? we need to extend the auth controller and we need to compare the all access with school_id ?
we are using dektrium/yii2-rbac and its hard to manage in web and api please let me know your concern how can we implement these with web and api in both? and how can I manage different users (superadmin, admin,student, teacher etc…) with single auth URL like (
The way to solve this is to have standard permissions across all schools, but Roles will have to be school specific, so a school can assign the pre-defined permissions to any Role they create. Then from the Yii auth will take over and check if a user can do the requested action in the normal way.