We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25cd16f commit 484e9afCopy full SHA for 484e9af
reference/twig_reference.rst
@@ -144,15 +144,13 @@ is_granted
144
{{ is_granted(role, object = null, field = null) }}
145
146
``role``
147
- **type**: ``string``, ``string[]``
+ **type**: ``string``
148
``object`` *(optional)*
149
**type**: ``object``
150
``field`` *(optional)*
151
**type**: ``string``
152
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.
+Returns ``true`` if the current user has the given role.
156
157
Optionally, an object can be passed to be used by the voter. More information
158
can be found in :ref:`security-template`.
0 commit comments