You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: security/voters.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -102,7 +102,9 @@ decides this using whatever logic you want.
102
102
103
103
The ``denyAccessUnlessGranted()`` and ``isGranted()`` functions are both
104
104
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
0 commit comments