File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -175,8 +175,7 @@ is_granted
175
175
176
176
Returns ``true `` if the current user has the given role. If several roles are
177
177
passed in an array, ``true `` is returned if the user has at least one of
178
- them or all of them, depending on the
179
- :ref: `Access Decision Manager strategy <security-access-control-enforcement-options >`.
178
+ them.
180
179
181
180
Optionally, an object can be passed to be used by the voter. More information
182
181
can be found in :ref: `security-template `.
Original file line number Diff line number Diff line change @@ -147,9 +147,7 @@ options:
147
147
* ``roles `` If the user does not have the given role, then access is denied
148
148
(internally, an :class: `Symfony\\ Component\\ Security\\ Core\\ Exception\\ AccessDeniedException `
149
149
is thrown). If this value is an array of multiple roles, the user must have
150
- at least one of them (when using the default ``affirmative `` strategy in the
151
- :ref: `Access Decision Manager <components-security-access-decision-manager >`)
152
- or all of them when using the ``unanimous `` strategy;
150
+ at least one of them.
153
151
154
152
* ``allow_if `` If the expression returns false, then access is denied;
155
153
You can’t perform that action at this time.
0 commit comments