We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40bbd81 commit 2bc5c54Copy full SHA for 2bc5c54
security/voters.rst
@@ -37,7 +37,6 @@ really need to secure just one or two routes, you can get away without setting u
37
doing the check right inside your controller(s)::
38
39
// src/AppBundle/Controller/PostController.php
40
-
41
if ($post->getOwner() !== $this->getUser()) {
42
throw new AccessDeniedException();
43
}
0 commit comments