Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9aa8a27

Browse filesBrowse files
committed
Merge branch '3.4' into 4.3
* 3.4: Add a note about voters with access_control
2 parents 58d990f + 8bef406 commit 9aa8a27
Copy full SHA for 9aa8a27

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed

‎security/access_control.rst

Copy file name to clipboardExpand all lines: security/access_control.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,13 @@ options:
173173
can learn how to use your custom attributes by reading
174174
:ref:`security/custom-voter`.
175175

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+
176183
.. tip::
177184

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.