mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-15 06:40:59 +08:00
Update security-authorization.md (#16082) [skip ci]
This commit is contained in:
@ -599,7 +599,7 @@ If the creation of role parameters is a simple operation, you may just specify a
|
|||||||
'allow' => true,
|
'allow' => true,
|
||||||
'actions' => ['update'],
|
'actions' => ['update'],
|
||||||
'roles' => ['updatePost'],
|
'roles' => ['updatePost'],
|
||||||
'roleParams' => ['postId' => Yii::$app->request->get('id')];
|
'roleParams' => ['postId' => Yii::$app->request->get('id')],
|
||||||
],
|
],
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user