2

How to define alias variable in yii? In my yii app their are 3 types of role,

  1. super-admin
  2. admin,
  3. 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

raghul
  • 1,480
  • 6
  • 22
  • 39

1 Answers1

2

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.

schmunk
  • 4,708
  • 1
  • 27
  • 50