raghul
raghul

Reputation: 1510

How to define alias variable in yii?

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

Upvotes: 2

Views: 288

Answers (1)

schmunk
schmunk

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

Related Questions