We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8dc87b commit b2eaa49Copy full SHA for b2eaa49
src/Security/PostVoter.php
@@ -52,7 +52,7 @@ protected function voteOnAttribute(string $attribute, $post, TokenInterface $tok
52
return false;
53
}
54
55
- // the logic of this voter is pretty simple: if the logged user is the
+ // the logic of this voter is pretty simple: if the logged-in user is the
56
// author of the given blog post, grant permission; otherwise, deny it.
57
// (the supports() method guarantees that $post is a Post object)
58
return $user === $post->getAuthor();
0 commit comments