Skip to content

Commit

Permalink
Merge pull request #299 from luizcmarin/patch-1
Browse files Browse the repository at this point in the history
Update policies.rst
  • Loading branch information
markstory authored Nov 16, 2024
2 parents f53cab7 + 802b5df commit 86a342a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/policies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Writing Policy Methods
The policy class we just created doesn't do much right now. Lets define a method
that allows us to check if a user can update an article::

public function canUpdate(IdentityInterface $user, Article $article)
public function canEdit(IdentityInterface $user, Article $article)
{
return $user->id == $article->user_id;
}
Expand Down

0 comments on commit 86a342a

Please sign in to comment.