Skip to content

Commit 419734c

Browse files
authored
Update access_control.rst
Fix rule symfony#3 described as second rule
1 parent 4e11720 commit 419734c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/access_control.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ if ``ip``, ``port``, ``host`` or ``method`` are not specified for an entry, that
111111
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+
112112
| ``/admin/user`` | 127.0.0.1 | 8080 | symfony.com | GET | rule #1 (``ROLE_USER_PORT``) | The ``path``, ``ip`` and ``port`` match. |
113113
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+
114-
| ``/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 |
114+
| ``/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 |
115115
| | | | | | | rule (which matches) is used. |
116116
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+
117-
| ``/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 |
117+
| ``/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 |
118118
| | | | | | | third rule (``ROLE_USER_METHOD``), but only the **first** |
119119
| | | | | | | matched ``access_control`` is used. |
120120
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+

0 commit comments

Comments
 (0)