Let many admins manage their own users ?

Hi

I’ve an application with many admins an this admins should manage only their users.

What would be the best approach to achieve this with yii?

Thx.

Take a look at how role based access control (RBAC) is implemented in Yii:

Definitive Guide - RBAC

You need a business rule for the Manage Own Users task, which returns true if the current user is an admin and has users to manage.

You could save yourself some work and use one of the existing RBAC mangement extensions, like Rights or SRBAC.

But you need to know how it works at the core level first.