Skip to content

Commit 2171355

Browse files
committed
minor #11988 [Security] Better explain what happens when multiple roles are passed (javiereguiluz)
This PR was merged into the 3.4 branch. Discussion ---------- [Security] Better explain what happens when multiple roles are passed Fixes symfony/symfony#32594 Commits ------- f001b9b [Security] Better explain what happens when multiple roles are passed
2 parents 066845f + f001b9b commit 2171355

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

reference/twig_reference.rst

Lines changed: 2 additions & 1 deletion
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)