We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee1e6c0 + 541999d commit b5ab69bCopy full SHA for b5ab69b
security/access_control.rst
@@ -159,6 +159,13 @@ options:
159
can learn how to use your custom attributes by reading
160
:ref:`security/custom-voter`.
161
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
169
.. tip::
170
171
If access is denied, the system will try to authenticate the user if not
0 commit comments