Skip to content

Commit 47274f4

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: Update access_control.rst
2 parents 3255831 + 46236ec commit 47274f4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

security/access_control.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,16 @@ 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 |
194-
| | | | | | | rule (which matches) is used. |
193+
| ``/admin/user`` | 168.0.0.1 | 80 | symfony.com | GET | rule #3 (``ROLE_USER_HOST``) | The ``ip`` doesn't match neither the first rule nor the |
194+
| | | | | | | second rule. So the third 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 |
197-
| | | | | | | third rule (``ROLE_USER_METHOD``), but only the **first** |
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 |
197+
| | | | | | | fourth rule (``ROLE_USER_METHOD``), but only the **first** |
198198
| | | | | | | matched ``access_control`` is used. |
199199
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+
200-
| ``/admin/user`` | 168.0.0.1 | 80 | example.com | POST | rule #4 (``ROLE_USER_METHOD``) | The ``ip`` and ``host`` don't match the first two entries, |
201-
| | | | | | | but the third - ``ROLE_USER_METHOD`` - matches and is used. |
200+
| ``/admin/user`` | 168.0.0.1 | 80 | example.com | POST | rule #4 (``ROLE_USER_METHOD``) | The ``ip`` and ``host`` don't match the first three |
201+
| | | | | | | entries, but the fourth - ``ROLE_USER_METHOD`` - matches |
202+
| | | | | | | and is used. |
202203
+-----------------+-------------+-------------+-------------+------------+--------------------------------+-------------------------------------------------------------+
203204
| ``/foo`` | 127.0.0.1 | 80 | symfony.com | POST | matches no entries | This doesn't match any ``access_control`` rules, since its |
204205
| | | | | | | URI doesn't match any of the ``path`` values. |

0 commit comments

Comments
 (0)