Skip to content

Commit f001b9b

Browse files
committed
[Security] Better explain what happens when multiple roles are passed
1 parent 012784e commit f001b9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reference/twig_reference.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ is_granted
294294

295295
Returns ``true`` if the current user has the given role. If several roles are
296296
passed in an array, ``true`` is returned if the user has at least one of
297-
them.
297+
them or all of them, depending on the
298+
:ref:`Access Decision Manager strategy <security-access-control-enforcement-options>`.
298299

299300
Optionally, an object can be passed to be used by the voter. More information
300301
can be found in :ref:`security-template`.

0 commit comments

Comments
 (0)