Skip to content

Commit 484e9af

Browse files
xabbuhjaviereguiluz
authored andcommitted
adapt reference to no longer mention multi attribute support
1 parent 25cd16f commit 484e9af

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

reference/twig_reference.rst

+2-4
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,13 @@ is_granted
144144
{{ is_granted(role, object = null, field = null) }}
145145
146146
``role``
147-
**type**: ``string``, ``string[]``
147+
**type**: ``string``
148148
``object`` *(optional)*
149149
**type**: ``object``
150150
``field`` *(optional)*
151151
**type**: ``string``
152152

153-
Returns ``true`` if the current user has the given role. If several roles are
154-
passed in an array, ``true`` is returned if the user has at least one of
155-
them.
153+
Returns ``true`` if the current user has the given role.
156154

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

0 commit comments

Comments
 (0)