File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,20 @@ For https://github.com/yiisoft/yii2/issues/42
10
10
- If your project doesn't have to implement rbac then run ` yii migrate --migrationPath=@yii/rbac/migrations/ `
11
11
- Add to ` config/web.php ` (for basic app) or ` common/config/main.php ` (for advanced app)
12
12
``` php
13
+ 'modules' => [
13
14
'rbac' => [
14
- 'class' => 'githubjeka\rbac\Module',
15
- 'as access' => [ // if you need to set access
16
- 'class' => 'yii\filters\AccessControl',
17
- 'rules' => [
18
- [
19
- 'allow' => true,
20
- 'roles' => ['@'] // all auth users
21
- ],
22
- ]
23
- ]
24
- ],
15
+ 'class' => 'githubjeka\rbac\Module',
16
+ 'as access' => [ // if you need to set access
17
+ 'class' => 'yii\filters\AccessControl',
18
+ 'rules' => [
19
+ [
20
+ 'allow' => true,
21
+ 'roles' => ['@'] // all auth users
22
+ ],
23
+ ]
24
+ ]
25
+ ],
26
+ ],
25
27
```
26
28
- go to url ` /index.php?r=rbac `
27
29
You can’t perform that action at this time.
0 commit comments