mdmsoft / yii2-admin

Auth manager for Yii2 (RBAC Manager)
GNU General Public License v3.0
1.16k stars 574 forks source link

superuser #176

Open dadinugroho opened 9 years ago

dadinugroho commented 9 years ago

Thank you for great extension. I delay my upgrade to yii2 because I could not find good extension for rbac like auth in yii 1.

Since I found great extension, I now start to upgrade to yii2. However, I need one more needed feature, superuser. Is that already implemented?

Terima kasih

mindochin commented 8 years ago

I support the idea. you have to manually write checks for admin

mdmunir commented 8 years ago

I need one more needed feature, superuser. Is that already implemented?

Yes. Create role super-admin, assign it with route *. Assign user with that role, then you got super user.

mindochin commented 8 years ago

Yes. Create role super-admin, assign it with route *. Assign user with that role, then you got super user

in this case, not working "if(Yii::$app->user->can('index/config'))"

mdmunir commented 8 years ago

in this case, not working "if(Yii::$app->user->can('index/config'))"

You are right. Thats limitation from Yii2. Feel free to submit issue to https://github.com/yiisoft/yii2/issues