10000 Merge branch '3.4' into 4.3 · symfony/symfony-docs@9aa8a27 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9aa8a27

Browse 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

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