Skip to content

Commit

Permalink
Fixed arguments order in RBAC guide
Browse files Browse the repository at this point in the history
  • Loading branch information
samdark committed Apr 30, 2014
1 parent 1530cdb commit 6bad243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/security-authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ $updateOwnPost->ruleName = $rule->name;
$auth->add($updateOwnPost);

// "updateOwnPost" will be used from "updatePost"
$auth->addChild($updatePost, $updateOwnPost);
$auth->addChild($updateOwnPost, $updatePost);

// allow "author" to update their own posts
$auth->addChild($author, $updateOwnPost);
Expand Down

0 comments on commit 6bad243

Please sign in to comment.