Commit 010704d3 by Carsten Brandt

Merge pull request #5490 from MihailDev/patch-1

Update security-authorization.md
parents 711e631e 3c153c20
...@@ -347,7 +347,7 @@ $rule = new \app\rbac\AuthorRule; ...@@ -347,7 +347,7 @@ $rule = new \app\rbac\AuthorRule;
$auth->add($rule); $auth->add($rule);
// add the "updateOwnPost" permission and associate the rule with it. // add the "updateOwnPost" permission and associate the rule with it.
$updateOwnPost = $this->auth->createPermission('updateOwnPost'); $updateOwnPost = $auth->createPermission('updateOwnPost');
$updateOwnPost->description = 'Update own post'; $updateOwnPost->description = 'Update own post';
$updateOwnPost->ruleName = $rule->name; $updateOwnPost->ruleName = $rule->name;
$auth->add($updateOwnPost); $auth->add($updateOwnPost);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment