8000 Minor reword · symfony/symfony-docs@c5d5dbb · GitHub
[go: up one dir, main page]

Skip to content

Commit c5d5dbb

Browse files
committed
Minor reword
1 parent 5c52321 commit c5d5dbb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

reference/twig_reference.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -308,12 +308,12 @@ is_granted
308308
``field`` *(optional)*
309309
**type**: ``string``
310310

311-
Returns ``true`` if the current user has the required role, if only one
312-
is passed; if more than one is passed, with an array, the behavior depends
313-
on how the :ref:`Access Decision Manager <components-security-access-decision-manager>`
314-
is configured; by default, the user has to have at least one of the passed roles.
311+
Returns ``true`` if the current user has the given role. If several roles are
312+
passed in an array, returns ``true`` if the user has all of them or at least one
313+
of them, depending on the value of this option:
314+
:ref:`security.access_decision_manager.strategy <security-voters-change-strategy>`.
315315

316-
Optionally, an object can be pasted to be used by the voter. More information
316+
Optionally, an object can be passed to be used by the voter. More information
317317
can be found in :ref:`security-template`.
318318

319319
.. note::

0 commit comments

Comments
 (0)
0