How to define alias variable in yii?
In my yii app their are 3 types of role,
- super-admin
- admin,
- user,
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
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
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.