From f001b9be343af7f2507ff28d8726e3f398b71f33 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 18 Jul 2019 16:15:34 +0200 Subject: [PATCH] [Security] Better explain what happens when multiple roles are passed --- reference/twig_reference.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index 6c455c8b306..bf01340a061 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -294,7 +294,8 @@ is_granted Returns ``true`` if the current user has the given role. If several roles are passed in an array, ``true`` is returned if the user has at least one of -them. +them or all of them, depending on the +:ref:`Access Decision Manager strategy `. Optionally, an object can be passed to be used by the voter. More information can be found in :ref:`security-template`.