Skip to content

[Security] Add a note about Access Decision Strategy with access_control #12827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions security/access_control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,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. See :doc:`/security/voters`
to change your strategy to something more suited to your needs.

.. tip::

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