black-lamp / blcms-rbac
Rbac extension for the Yii framework
Installs: 81
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: >=2.0.4
- yiisoft/yii2-bootstrap: *
This package is not auto-updated.
Last update: 2024-10-26 20:15:15 UTC
README
INSTALLATION
Migrate
yii migrate --migrationPath=@vendor/black-lamp/blcms-rbac/migrations
Add module to your 'modules' config section
'modules' => [
...
'rbac' => [
'class' => 'bl\rbac\Module'
],
...
]
Configure AccessBehavior
'as AccessBehavior' => [
'class' => 'bl\rbac\components\AccessBehavior'
],
Rolefor access is 'rbacManager'.