File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -278,12 +278,12 @@ There are three strategies available:
278
278
This grants access as soon as there is *one * voter granting access;
279
279
280
280
``consensus ``
281
- This grants access if there are more voters granting access than denying;
281
+ This grants access if there are more voters granting access than
282
+ denying. If case of a tie the decision is based on the
283
+ ``allow_if_equal_granted_denied `` config option (defaulting to ``true ``);
282
284
283
285
``unanimous ``
284
- This only grants access if there is no voter denying access. If all voters
285
- abstained from voting, the decision is based on the ``allow_if_all_abstain ``
286
- config option (which defaults to ``false ``);
286
+ This only grants access if there is no voter denying access.
287
287
288
288
``priority ``
289
289
This grants or denies access by the first voter that does not abstain,
@@ -293,6 +293,10 @@ There are three strategies available:
293
293
294
294
The ``priority `` version strategy was introduced in Symfony 5.1.
295
295
296
+ Regardless the chosen strategy, if all voters abstained from voting, the
297
+ decision is based on the ``allow_if_all_abstain `` config option (which
298
+ defaults to ``false ``).
299
+
296
300
In the above scenario, both voters should grant access in order to grant access
297
301
to the user to read the post. In this case, the default strategy is no longer
298
302
valid and ``unanimous `` should be used instead. You can set this in the
You can’t perform that action at this time.
0 commit comments