Skip to content

Commit 1580879

Browse files
committed
Fix code issue
1 parent bab29f2 commit 1580879

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Security/PostVoter.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,7 @@ protected function voteOnAttribute(string $attribute, $post, TokenInterface $tok
6666
}
6767

6868
$vote?->addReason(\sprintf('You can\'t %s this blog post because you are not its author.', $attribute));
69+
70+
return false;
6971
}
7072
}

0 commit comments

Comments
 (0)