Rbac Per Area

Hi All,

I am using RBAC with roles ‘Admin’ and ‘User’.

‘User’ able to create and view ‘Customer’, and ‘Admin’ inherit ‘User’ and able to edit ‘Customer’.

Now, I’d like add ‘area_id’ into ‘Customer’, and each roles can perform function within their ‘area_id’ respectively.

Currently, I put validation in Controller/loadModel, and Model/search.

Is there any better way to achieve this, as there are more tables with ‘area_id’.

Thank you.

Appreciate it for any advise.

If I understood you correctly then you probably can achieve what you need using ‘business rules’ in RBAC.