Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9aa8a27

Browse files
committed
Merge branch '3.4' into 4.3
* 3.4: Add a note about voters with access_control
2 parents58d990f +8bef406 commit9aa8a27

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
@@ -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)

[8]ページ先頭

©2009-2025 Movatter.jp