Commit 2be6e8e16d0d42972b284519b27414ffa5880336
1 parent
065e6a52
image size
Showing
1 changed file
with
41 additions
and
41 deletions
Show diff stats
common/config/main.php
| ... | ... | @@ -351,46 +351,46 @@ return [ |
| 351 | 351 | ]*/ |
| 352 | 352 | ] |
| 353 | 353 | ], |
| 354 | - 'comment' => [ | |
| 355 | - 'class' => 'common\modules\comment\Module', | |
| 356 | - 'useRbac' => true, | |
| 357 | - 'rbac' => [ | |
| 358 | - 'rules' => [ | |
| 359 | - \common\modules\comment\rbac\ArtboxCommentCreateRule::className(), | |
| 360 | - \common\modules\comment\rbac\ArtboxCommentDeleteRule::className(), | |
| 361 | - \common\modules\comment\rbac\ArtboxCommentUpdateRule::className(), | |
| 362 | - \common\modules\comment\rbac\ArtboxCommentUpdateOwnRule::className(), | |
| 363 | - \common\modules\comment\rbac\ArtboxCommentDeleteOwnRule::className(), | |
| 364 | - ], | |
| 365 | - 'permissions' => [ | |
| 366 | - [ | |
| 367 | - 'name' => common\modules\comment\Permissions::CREATE, | |
| 368 | - 'description' => 'Can create comments', | |
| 369 | - 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentCreateRule())->name, | |
| 370 | - ], | |
| 371 | - [ | |
| 372 | - 'name' => common\modules\comment\Permissions::UPDATE, | |
| 373 | - 'description' => 'Can update comments', | |
| 374 | - 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentUpdateRule())->name, | |
| 375 | - ], | |
| 376 | - [ | |
| 377 | - 'name' => common\modules\comment\Permissions::DELETE, | |
| 378 | - 'description' => 'Can delete comments', | |
| 379 | - 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentDeleteRule())->name, | |
| 380 | - ], | |
| 381 | - [ | |
| 382 | - 'name' => common\modules\comment\Permissions::UPDATE_OWN, | |
| 383 | - 'description' => 'Can update own comments', | |
| 384 | - 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentUpdateOwnRule())->name, | |
| 385 | - ], | |
| 386 | - [ | |
| 387 | - 'name' => common\modules\comment\Permissions::DELETE_OWN, | |
| 388 | - 'description' => 'Can delete own comments', | |
| 389 | - 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentDeleteOwnRule())->name, | |
| 390 | - ], | |
| 391 | - ], | |
| 392 | - ], | |
| 393 | - | |
| 394 | - ], | |
| 354 | +// 'comment' => [ | |
| 355 | +// 'class' => 'common\modules\comment\Module', | |
| 356 | +// 'useRbac' => true, | |
| 357 | +// 'rbac' => [ | |
| 358 | +// 'rules' => [ | |
| 359 | +// \common\modules\comment\rbac\ArtboxCommentCreateRule::className(), | |
| 360 | +// \common\modules\comment\rbac\ArtboxCommentDeleteRule::className(), | |
| 361 | +// \common\modules\comment\rbac\ArtboxCommentUpdateRule::className(), | |
| 362 | +// \common\modules\comment\rbac\ArtboxCommentUpdateOwnRule::className(), | |
| 363 | +// \common\modules\comment\rbac\ArtboxCommentDeleteOwnRule::className(), | |
| 364 | +// ], | |
| 365 | +// 'permissions' => [ | |
| 366 | +// [ | |
| 367 | +// 'name' => common\modules\comment\Permissions::CREATE, | |
| 368 | +// 'description' => 'Can create comments', | |
| 369 | +// 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentCreateRule())->name, | |
| 370 | +// ], | |
| 371 | +// [ | |
| 372 | +// 'name' => common\modules\comment\Permissions::UPDATE, | |
| 373 | +// 'description' => 'Can update comments', | |
| 374 | +// 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentUpdateRule())->name, | |
| 375 | +// ], | |
| 376 | +// [ | |
| 377 | +// 'name' => common\modules\comment\Permissions::DELETE, | |
| 378 | +// 'description' => 'Can delete comments', | |
| 379 | +// 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentDeleteRule())->name, | |
| 380 | +// ], | |
| 381 | +// [ | |
| 382 | +// 'name' => common\modules\comment\Permissions::UPDATE_OWN, | |
| 383 | +// 'description' => 'Can update own comments', | |
| 384 | +// 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentUpdateOwnRule())->name, | |
| 385 | +// ], | |
| 386 | +// [ | |
| 387 | +// 'name' => common\modules\comment\Permissions::DELETE_OWN, | |
| 388 | +// 'description' => 'Can delete own comments', | |
| 389 | +// 'ruleName' =>(new \common\modules\comment\rbac\ArtboxCommentDeleteOwnRule())->name, | |
| 390 | +// ], | |
| 391 | +// ], | |
| 392 | +// ], | |
| 393 | +// | |
| 394 | +// ], | |
| 395 | 395 | ], |
| 396 | 396 | ]; | ... | ... |