From b2eaa49efd33c9cc38e91d378fc77fb133547d69 Mon Sep 17 00:00:00 2001 From: Paul Rijke Date: Sun, 14 Apr 2024 10:31:31 +0200 Subject: [PATCH] Update PostVoter.php Update comment with correct user status --- src/Security/PostVoter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Security/PostVoter.php b/src/Security/PostVoter.php index b799651b5..540acbde7 100644 --- a/src/Security/PostVoter.php +++ b/src/Security/PostVoter.php @@ -52,7 +52,7 @@ protected function voteOnAttribute(string $attribute, $post, TokenInterface $tok return false; } - // 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 // author of the given blog post, grant permission; otherwise, deny it. // (the supports() method guarantees that $post is a Post object) return $user === $post->getAuthor();