Skip to content

fix voting on multiple roles behavior description #12106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions reference/twig_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ is_granted

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

Optionally, an object can be passed to be used by the voter. More information
can be found in :ref:`security-template`.
Expand Down
4 changes: 1 addition & 3 deletions security/access_control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@ options:
* ``roles`` If the user does not have the given role, then access is denied
(internally, an :class:`Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException`
is thrown). If this value is an array of multiple roles, the user must have
at least one of them (when using the default ``affirmative`` strategy in the
:ref:`Access Decision Manager <components-security-access-decision-manager>`)
or all of them when using the ``unanimous`` strategy;
at least one of them.

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

Expand Down