Created
June 16, 2017 12:59
-
-
Save squio/76707cb294565255566d613188f93176 to your computer and use it in GitHub Desktop.
Add User Management permission for Dektrium yii2-user for use with yii2-rbac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add permission to config | |
'modules' => [ | |
'user' => [ | |
'class' => 'dektrium\user\Module', | |
'adminPermission' => 'user_admin', // RBAC permission for administration | |
... | |
Add RBAC auth_item | |
name: 'user_admin' | |
type: 2 | |
Assign Permission 'user_admin' to relevant users |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment