Releases: yii2mod/yii2-rbac
Releases · yii2mod/yii2-rbac
1.7 Release
Date: October, 15, 2016
- Removed bootstrap function from the ConsoleModule
1.6 Release
Date: September, 6, 2016
- Update tests
1.5 Release
Date: August, 17, 2016
- Update docs
- Improve RouteModel
1.4 Release
Date: August, 16, 2016
- Added
allowActions
property to AccessControl filter
Usage:
// When filter attaches globally
'as access' => [
'class' => yii2mod\rbac\filters\AccessControl::class,
'allowActions' => [
'site/*',
'admin/*',
// The actions listed here will be allowed to everyone including guests.
// So, 'admin/*' should not appear here in the production, of course.
// But in the earlier stages of your development, you may probably want to
// add a lot of actions here until you finally completed setting up rbac,
// otherwise you may not even take a first step.
]
],
// When filter attaches via `behaviors` in the controller
public function behaviors()
{
return [
'access' => [
'class' => AccessControl::className(),
'allowActions' => ['contact', 'about-us'], // list of controller actions
],
}
1.3 Release
- Code refactoring
- Added
ConsoleModule
that allows to create console migrations - Added translations: en, ru
- Update docs
1.2 Release
Date: Tuesday, July 7, 2016
- Added tests for the Rbac Models
Version 1.1
Upgrade to release v1.1
Initial release
1.0 Update RbacCommand.php