From 24ebee7055efa319bb248b2970671bb774f0e2f4 Mon Sep 17 00:00:00 2001 From: pohlaniacz Date: Mon, 9 Mar 2020 14:31:50 +0100 Subject: [PATCH] Typo in allow_if condition Headers instead of header --- 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 1156276f928..88f5a631b88 100644 --- a/security/access_control.rst +++ b/security/access_control.rst @@ -291,7 +291,7 @@ key: # the 'role' and 'allow-if' options work like an OR expression, so # access is granted if the expression is TRUE or the user has ROLE_ADMIN roles: 'ROLE_ADMIN' - allow_if: "'127.0.0.1' == request.getClientIp() or request.header.has('X-Secure-Access')" + allow_if: "'127.0.0.1' == request.getClientIp() or request.headers.has('X-Secure-Access')" .. code-block:: xml @@ -308,7 +308,7 @@ key: access is granted if the expression is TRUE or the user has ROLE_ADMIN --> + allow-if="'127.0.0.1' == request.getClientIp() or request.headers.has('X-Secure-Access')"/> @@ -320,7 +320,7 @@ key: // the 'role' and 'allow-if' options work like an OR expression, so // access is granted if the expression is TRUE or the user has ROLE_ADMIN 'roles' => 'ROLE_ADMIN', - 'allow_if' => '"127.0.0.1" == request.getClientIp() or request.header.has('X-Secure-Access')', + 'allow_if' => '"127.0.0.1" == request.getClientIp() or request.headers.has('X-Secure-Access')', ], ],