Skip to content

Commit 51dbe37

Browse files
committed
minor #10580 fix RoleVoter behaviour description (xabbuh)
This PR was merged into the 2.8 branch. Discussion ---------- fix RoleVoter behaviour description <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- f71cf80 fix RoleVoter behaviour description
2 parents 9cd5b2b + f71cf80 commit 51dbe37

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)