Skip to content

Commit b5ab69b

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Add a note about voters with access_control
2 parents ee1e6c0 + 541999d commit b5ab69b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

security/access_control.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@ options:
159159
can learn how to use your custom attributes by reading
160160
:ref:`security/custom-voter`.
161161

162+
.. caution::
163+
164+
If you define both ``roles`` and ``allow_if``, and your Access Decision
165+
Strategy is the default one (``affirmative``), then the user will be granted
166+
access if there's at least one valid condition. If this behavior doesn't fit
167+
your needs, :ref:`change the Access Decision Strategy <security-voters-change-strategy>`.
168+
162169
.. tip::
163170

164171
If access is denied, the system will try to authenticate the user if not

0 commit comments

Comments
 (0)