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 e5c8d21 commit d97a17cCopy full SHA for d97a17c
src/Controller/Admin/BlogController.php
@@ -118,7 +118,7 @@ public function new(Request $request): Response
118
public function show(Post $post): Response
119
{
120
// This security check can also be performed
121
- // using an annotation: @IsGranted("show", subject="post")
+ // using an annotation: @IsGranted("show", subject="post", message="Posts can only be shown to their authors.")
122
$this->denyAccessUnlessGranted('show', $post, 'Posts can only be shown to their authors.');
123
124
return $this->render('admin/blog/show.html.twig', [
0 commit comments