Skip to content
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
10 changes: 10 additions & 0 deletions security/access_control.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ Take the following ``access_control`` entries as an example:
],
]);

.. deprecated:: 4.4

Using more than one role in a single ``access_control`` rule is deprecated
and will stop working in Symfony 5.0.

For each incoming request, Symfony will decide which ``access_control``
to use based on the URI, the client's IP address, the incoming host name,
and the request method. Remember, the first rule that matches is used, and
Expand Down Expand Up @@ -153,6 +158,11 @@ options:
is thrown). If this value is an array of multiple roles, the user must have
at least one of them.

.. deprecated:: 4.4

Using more than one role in a single ``access_control`` rule is deprecated
and will stop working in Symfony 5.0.

* ``allow_if`` If the expression returns false, then access is denied;

* ``requires_channel`` If the incoming request's channel (e.g. ``http``)
Expand Down