File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -308,12 +308,12 @@ is_granted
308
308
``field `` *(optional) *
309
309
**type **: ``string ``
310
310
311
- Returns ``true `` if the current user has the required role, if only one
312
- is passed; if more than one is passed, with an array, the behavior depends
313
- on how the :ref: ` Access Decision Manager < components-security-access-decision-manager >`
314
- is configured; by default, the user has to have at least one of the passed roles .
311
+ 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 >` .
315
315
316
- Optionally, an object can be pasted to be used by the voter. More information
316
+ Optionally, an object can be passed to be used by the voter. More information
317
317
can be found in :ref: `security-template `.
318
318
319
319
.. note ::
You can’t perform that action at this time.
0 commit comments