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 @@ -294,8 +294,7 @@ is_granted
294
294
295
295
Returns ``true `` if the current user has the given role. If several roles are
296
296
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.
299
298
300
299
Optionally, an object can be passed to be used by the voter. More information
301
300
can be found in :ref: `security-template `.
Original file line number Diff line number Diff line change @@ -134,9 +134,7 @@ options:
134
134
* ``roles `` If the user does not have the given role, then access is denied
135
135
(internally, an :class: `Symfony\\ Component\\ Security\\ Core\\ Exception\\ AccessDeniedException `
136
136
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.
140
138
141
139
* ``allow_if `` If the expression returns false, then access is denied;
142
140
You can’t perform that action at this time.
0 commit comments