diff --git a/common/config/main.php b/common/config/main.php index 5b2c4c0..0676ff3 100755 --- a/common/config/main.php +++ b/common/config/main.php @@ -351,46 +351,46 @@ return [ ]*/ ] ], - 'comment' => [ - 'class' => 'common\modules\comment\Module', - 'useRbac' => true, - 'rbac' => [ - 'rules' => [ - \common\modules\comment\rbac\ArtboxCommentCreateRule::className(), - \common\modules\comment\rbac\ArtboxCommentDeleteRule::className(), - \common\modules\comment\rbac\ArtboxCommentUpdateRule::className(), - \common\modules\comment\rbac\ArtboxCommentUpdateOwnRule::className(), - \common\modules\comment\rbac\ArtboxCommentDeleteOwnRule::className(), - ], - 'permissions' => [ - [ - 'name' => common\modules\comment\Permissions::CREATE, - 'description' => 'Can create comments', - 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentCreateRule())->name, - ], - [ - 'name' => common\modules\comment\Permissions::UPDATE, - 'description' => 'Can update comments', - 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentUpdateRule())->name, - ], - [ - 'name' => common\modules\comment\Permissions::DELETE, - 'description' => 'Can delete comments', - 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentDeleteRule())->name, - ], - [ - 'name' => common\modules\comment\Permissions::UPDATE_OWN, - 'description' => 'Can update own comments', - 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentUpdateOwnRule())->name, - ], - [ - 'name' => common\modules\comment\Permissions::DELETE_OWN, - 'description' => 'Can delete own comments', - 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentDeleteOwnRule())->name, - ], - ], - ], - - ], +// 'comment' => [ +// 'class' => 'common\modules\comment\Module', +// 'useRbac' => true, +// 'rbac' => [ +// 'rules' => [ +// \common\modules\comment\rbac\ArtboxCommentCreateRule::className(), +// \common\modules\comment\rbac\ArtboxCommentDeleteRule::className(), +// \common\modules\comment\rbac\ArtboxCommentUpdateRule::className(), +// \common\modules\comment\rbac\ArtboxCommentUpdateOwnRule::className(), +// \common\modules\comment\rbac\ArtboxCommentDeleteOwnRule::className(), +// ], +// 'permissions' => [ +// [ +// 'name' => common\modules\comment\Permissions::CREATE, +// 'description' => 'Can create comments', +// 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentCreateRule())->name, +// ], +// [ +// 'name' => common\modules\comment\Permissions::UPDATE, +// 'description' => 'Can update comments', +// 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentUpdateRule())->name, +// ], +// [ +// 'name' => common\modules\comment\Permissions::DELETE, +// 'description' => 'Can delete comments', +// 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentDeleteRule())->name, +// ], +// [ +// 'name' => common\modules\comment\Permissions::UPDATE_OWN, +// 'description' => 'Can update own comments', +// 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentUpdateOwnRule())->name, +// ], +// [ +// 'name' => common\modules\comment\Permissions::DELETE_OWN, +// 'description' => 'Can delete own comments', +// 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentDeleteOwnRule())->name, +// ], +// ], +// ], +// +// ], ], ]; -- libgit2 0.21.4