From f71cf80464df0a741999dc5efb2235a9b73d8d1e Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Thu, 25 Oct 2018 16:46:21 +0200 Subject: [PATCH] fix RoleVoter behaviour description --- reference/twig_reference.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index 1b0cc3d2839..2d0c3351a4f 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -309,9 +309,8 @@ is_granted **type**: ``string`` Returns ``true`` if the current user has the given role. If several roles are -passed in an array, returns ``true`` if the user has all of them or at least one -of them, depending on the value of this option: -:ref:`security.access_decision_manager.strategy `. +passed in an array, ``true`` is returned if the user has at least one of +them. Optionally, an object can be passed to be used by the voter. More information can be found in :ref:`security-template`.