From d674d4a1a93f77b64040535b8edadbab0c743c57 Mon Sep 17 00:00:00 2001 From: stiteca Date: Sun, 6 Nov 2022 10:09:15 +0100 Subject: [PATCH] Update access_control.rst Fix rule #3 described as second option --- security/access_control.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/access_control.rst b/security/access_control.rst index 6b2d53cd848..3da7fa35270 100644 --- a/security/access_control.rst +++ b/security/access_control.rst @@ -190,10 +190,10 @@ if ``ip``, ``port``, ``host`` or ``method`` are not specified for an entry, that +-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+ | ``/admin/user`` | 127.0.0.1 | 8080 | symfony.com | GET | rule #1 (``ROLE_USER_PORT``) | The ``path``, ``ip`` and ``port`` match. | +-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+ -| ``/admin/user`` | 168.0.0.1 | 80 | symfony.com | GET | rule #3 (``ROLE_USER_HOST``) | The ``ip`` doesn't match the first rule, so the second | +| ``/admin/user`` | 168.0.0.1 | 80 | symfony.com | GET | rule #3 (``ROLE_USER_HOST``) | The ``ip`` doesn't match the first rule, so the third | | | | | | | | rule (which matches) is used. | +-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+ -| ``/admin/user`` | 168.0.0.1 | 80 | symfony.com | POST | rule #3 (``ROLE_USER_HOST``) | The second rule still matches. This would also match the | +| ``/admin/user`` | 168.0.0.1 | 80 | symfony.com | POST | rule #3 (``ROLE_USER_HOST``) | The third rule still matches. This would also match the | | | | | | | | third rule (``ROLE_USER_METHOD``), but only the **first** | | | | | | | | matched ``access_control`` is used. | +-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+