From b4f4ceb8ba73259fd01a6c3be6524b813ce00c59 Mon Sep 17 00:00:00 2001 From: Julien Manganne Date: Tue, 12 Mar 2019 13:50:40 +0100 Subject: [PATCH] Update access_control.rst role I think that there is an error about the second rule's `role` value. It should be `ROLE_USER_PORT` instead of `ROLE_USER_IP`. Correct me if I'm wrong! --- security/access_control.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/security/access_control.rst b/security/access_control.rst index 66abe850fb9..a669ddbc0c6 100644 --- a/security/access_control.rst +++ b/security/access_control.rst @@ -41,7 +41,7 @@ Take the following ``access_control`` entries as an example: # ... access_control: - { path: ^/admin, roles: ROLE_USER_IP, ip: 127.0.0.1 } - - { path: ^/admin, roles: ROLE_USER_IP, ip: 127.0.0.1, port: 8080 } + - { path: ^/admin, roles: ROLE_USER_PORT, ip: 127.0.0.1, port: 8080 } - { path: ^/admin, roles: ROLE_USER_HOST, host: symfony\.com$ } - { path: ^/admin, roles: ROLE_USER_METHOD, methods: [POST, PUT] } - { path: ^/admin, roles: ROLE_USER } @@ -59,7 +59,7 @@ Take the following ``access_control`` entries as an example: - + @@ -79,7 +79,7 @@ Take the following ``access_control`` entries as an example: ], [ 'path' => '^/admin', - 'role' => 'ROLE_USER_IP', + 'role' => 'ROLE_USER_PORT', 'ip' => '127.0.0.1', 'port' => '8080', ),