Skip to content

Commit f71cf80

Browse files
committed
fix RoleVoter behaviour description
1 parent 9cd5b2b commit f71cf80

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

reference/twig_reference.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,8 @@ is_granted
309309
**type**: ``string``
310310

311311
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>`.
312+
passed in an array, ``true`` is returned if the user has at least one of
313+
them.
315314

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

0 commit comments

Comments
 (0)