Skip to content

Instantly share code, notes, and snippets.

@squio
Created June 16, 2017 12:59
Show Gist options
  • Save squio/76707cb294565255566d613188f93176 to your computer and use it in GitHub Desktop.
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
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