Reputation: 1510
How to define alias variable in yii?
In my yii app their are 3 types of role,
super admin can do admin functionalists and some more things, so
how can i define a alias role super-admin==admin but not vise-versa
Upvotes: 2
Views: 288
Reputation: 4708
See Auth Hierarchy from the guide, you can define that admin is a child of super-admin, also user could be a child of admin.
You may use an extension, such as yii-rights to handle this.
Upvotes: 2