Skip to content

Commit

Permalink
Merge pull request #8 from windhoney/develop
Browse files Browse the repository at this point in the history
no message
  • Loading branch information
windhoney authored Sep 27, 2017
2 parents 10d4738 + 6ac958e commit 91bb202
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@
]
],
```
* **配置权限**
```php
'as access' => [
'class' => 'wind\rest\components\AccessControl',
'allowActions' => [
'site/*',//允许访问的节点,可自行添加
'rbac/menu/user-menu',//允许所有人访问admin节点及其子节点
'oauth2/*',//允许所有人访问admin节点及其子节点
]
],
```


* **创建所需要的表**
```
//用户表user和菜单表menu
Expand Down

0 comments on commit 91bb202

Please sign in to comment.