Skip to content

Commit 26741c8

Browse files
committed
minor #1512 Update PostVoter.php (parijke)
This PR was merged into the main branch. Discussion ---------- Update PostVoter.php Update comment with correct user status Commits ------- b2eaa49 Update PostVoter.php
2 parents e8dc87b + b2eaa49 commit 26741c8

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)