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 a8437a9 + b5ab69b commit 6a8249bCopy full SHA for 6a8249b
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