File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,10 @@ For more information take a look at
33
33
34
34
.. tip ::
35
35
36
- The advantage of voters is that you can reuse them in *many * places and centralize
37
- all permission logic. If you don't reuse permissions and the permissions are simple,
38
- you might want to do the check in the controller directly and throw an ``AccessDeniedException ``
36
+ The example used throughout this page features just two routes (``post_show `` and ``post_edit ``).
37
+ However, the advantage of voters is that you can reuse them in *many * places and centralize
38
+ all permission logic. If you don't reuse permissions and the rules are simple, you instead
39
+ might want to do the check in the controller directly and throw an ``AccessDeniedException ``
39
40
to create the correct response::
40
41
41
42
// src/AppBundle/Controller/PostController.php
You can’t perform that action at this time.
0 commit comments