Skip to content

Commit d674d4a

Browse files
authored
Update access_control.rst
Fix rule symfony#3 described as second option
1 parent 5ec30fa commit d674d4a

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
@@ -190,10 +190,10 @@ if ``ip``, ``port``, ``host`` or ``method`` are not specified for an entry, that
190190
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+
191191
| ``/admin/user`` | 127.0.0.1 | 8080 | symfony.com | GET | rule #1 (``ROLE_USER_PORT``) | The ``path``, ``ip`` and ``port`` match. |
192192
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+
193-
| ``/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 |
193+
| ``/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 |
194194
| | | | | | | rule (which matches) is used. |
195195
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+
196-
| ``/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 |
196+
| ``/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 |
197197
| | | | | | | third rule (``ROLE_USER_METHOD``), but only the **first** |
198198
| | | | | | | matched ``access_control`` is used. |
199199
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+

0 commit comments

Comments
 (0)