From 484e9af84e5bf83aadf95983ef8f93e3a91e1a70 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Mon, 8 Jun 2020 11:50:18 +0200 Subject: [PATCH] adapt reference to no longer mention multi attribute support --- reference/twig_reference.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/reference/twig_reference.rst b/reference/twig_reference.rst index df649b54665..4a97ab73308 100644 --- a/reference/twig_reference.rst +++ b/reference/twig_reference.rst @@ -144,15 +144,13 @@ is_granted {{ is_granted(role, object = null, field = null) }} ``role`` - **type**: ``string``, ``string[]`` + **type**: ``string`` ``object`` *(optional)* **type**: ``object`` ``field`` *(optional)* **type**: ``string`` -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. +Returns ``true`` if the current user has the given role. Optionally, an object can be passed to be used by the voter. More information can be found in :ref:`security-template`.