10000 Minor reword · symfony/symfony-docs@4023044 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4023044

Browse files
javiereguiluzxabbuh
authored andcommitted
Minor reword
1 parent 188b654 commit 4023044

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

security/voters.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ decides this using whatever logic you want.
102102

103103
The ``denyAccessUnlessGranted()`` and ``isGranted()`` functions are both
104104
just shortcuts of the ``Controller`` class to call ``isGranted()`` on
105-
  the ``security.authorization_checker`` service. ``denyAccessUnlessGranted()`` will throw an ``AccessDeniedException``, whereas ``isGranted()`` will return a boolean.
105+
  the ``security.authorization_checker`` service. The main difference is that
106+
when access is not granted, ``denyAccessUnlessGranted()`` throws an
107+
   ``AccessDeniedException``, whereas ``isGranted()`` returns ``false``.
106108

107109
Creating the custom Voter
108110
-------------------------

0 commit comments

Comments
 (0)
0