Skip to content

Commit

Permalink
Merge branch '4.4' into 5.0
Browse files Browse the repository at this point in the history
* 4.4:
  Add a note about voters with access_control
  • Loading branch information
javiereguiluz committed Jan 2, 2020
2 parents ee1e6c0 + 541999d commit b5ab69b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions security/access_control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ options:
can learn how to use your custom attributes by reading
:ref:`security/custom-voter`.

.. caution::

If you define both ``roles`` and ``allow_if``, and your Access Decision
Strategy is the default one (``affirmative``), then the user will be granted
access if there's at least one valid condition. If this behavior doesn't fit
your needs, :ref:`change the Access Decision Strategy <security-voters-change-strategy>`.

.. tip::

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

0 comments on commit b5ab69b

Please sign in to comment.