10000
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 58d990f + 8bef406 commit 9aa8a27Copy full SHA for 9aa8a27
security/access_control.rst
@@ -173,6 +173,13 @@ options:
173
can learn how to use your custom attributes by reading
174
:ref:`security/custom-voter`.
175
176
+.. caution::
177
+
178
+ If you define both ``roles`` and ``allow_if``, and your Access Decision
179
+ Strategy is the default one (``affirmative``), then the user will be granted
180
+ access if there's at least one valid condition. If this behavior doesn't fit
181
+ your needs, :ref:`change the Access Decision Strategy <security-voters-change-strategy>`.
182
183
.. tip::
184
185
If access is denied, the system will try to authenticate the user if not
0 commit comments