Skip to content

Commit b2eaa49

Browse files
authored
Update PostVoter.php
Update comment with correct user status
1 parent e8dc87b commit b2eaa49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Security/PostVoter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ protected function voteOnAttribute(string $attribute, $post, TokenInterface $tok
5252
return false;
5353
}
5454

55-
// the logic of this voter is pretty simple: if the logged user is the
55+
// the logic of this voter is pretty simple: if the logged-in user is the
5656
// author of the given blog post, grant permission; otherwise, deny it.
5757
// (the supports() method guarantees that $post is a Post object)
5858
return $user === $post->getAuthor();

0 commit comments

Comments
 (0)