Skip to content

Commit 802b5df

Browse files
authored
Update policies.rst
Bake generated "public function canEdit", not "public function canUpdate"
1 parent f53cab7 commit 802b5df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/en/policies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Writing Policy Methods
4949
The policy class we just created doesn't do much right now. Lets define a method
5050
that allows us to check if a user can update an article::
5151

52-
public function canUpdate(IdentityInterface $user, Article $article)
52+
public function canEdit(IdentityInterface $user, Article $article)
5353
{
5454
return $user->id == $article->user_id;
5555
}

0 commit comments

Comments
 (0)