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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.