Skip to content

Commit 4b76554

Browse files
committed
fix voting on multiple roles behavior description
1 parent 6d5f268 commit 4b76554

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

reference/twig_reference.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ is_granted
294294

295295
Returns ``true`` if the current user has the given role. If several roles are
296296
passed in an array, ``true`` is returned if the user has at least one of
297-
them or all of them, depending on the
298-
:ref:`Access Decision Manager strategy <security-access-control-enforcement-options>`.
297+
them.
299298

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

security/access_control.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ options:
134134
* ``roles`` If the user does not have the given role, then access is denied
135135
(internally, an :class:`Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException`
136136
is thrown). If this value is an array of multiple roles, the user must have
137-
at least one of them (when using the default ``affirmative`` strategy in the
138-
:ref:`Access Decision Manager <components-security-access-decision-manager>`)
139-
or all of them when using the ``unanimous`` strategy;
137+
at least one of them.
140138

141139
* ``allow_if`` If the expression returns false, then access is denied;
142140

0 commit comments

Comments
 (0)