Skip to content

Commit 4dbff3f

Browse files
committed
Update README.md
1 parent 8256e00 commit 4dbff3f

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ For https://github.com/yiisoft/yii2/issues/42
1010
- If your project doesn't have to implement rbac then run `yii migrate --migrationPath=@yii/rbac/migrations/`
1111
- Add to `config/web.php `(for basic app) or `common/config/main.php` (for advanced app)
1212
```php
13+
'modules' => [
1314
'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+
],
2527
```
2628
- go to url `/index.php?r=rbac`
2729

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy