There was an error while loading. Please reload this page.
1 parent 1d1578e commit 42fa416Copy full SHA for 42fa416
cookbook/security/voters.rst
@@ -224,8 +224,6 @@ from the authorization checker is called.
224
// get a Post instance
225
$post = ...;
226
227
- $authChecker = $this->get('security.authorization_checker');
228
-
229
$this->denyAccessUnlessGranted('view', $post, 'Unauthorized access!');
230
231
return new Response('<h1>'.$post->getName().'</h1>');
0 commit comments