Skip to content

Commit 07da6ce

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Typo in allow_if condition
2 parents 44988e0 + 903b1b4 commit 07da6ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

security/access_control.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ key:
304304
# the 'role' and 'allow-if' options work like an OR expression, so
305305
# access is granted if the expression is TRUE or the user has ROLE_ADMIN
306306
roles: 'ROLE_ADMIN'
307-
allow_if: "'127.0.0.1' == request.getClientIp() or request.header.has('X-Secure-Access')"
307+
allow_if: "'127.0.0.1' == request.getClientIp() or request.headers.has('X-Secure-Access')"
308308
309309
.. code-block:: xml
310310
@@ -322,7 +322,7 @@ key:
322322
access is granted if the expression is TRUE or the user has ROLE_ADMIN -->
323323
<rule path="^/_internal/secure"
324324
role="ROLE_ADMIN"
325-
allow-if="'127.0.0.1' == request.getClientIp() or request.header.has('X-Secure-Access')"/>
325+
allow-if="'127.0.0.1' == request.getClientIp() or request.headers.has('X-Secure-Access')"/>
326326
</config>
327327
</srv:container>
328328
@@ -337,7 +337,7 @@ key:
337337
// the 'role' and 'allow-if' options work like an OR expression, so
338338
// access is granted if the expression is TRUE or the user has ROLE_ADMIN
339339
'roles' => 'ROLE_ADMIN',
340-
'allow_if' => '"127.0.0.1" == request.getClientIp() or request.header.has('X-Secure-Access')',
340+
'allow_if' => '"127.0.0.1" == request.getClientIp() or request.headers.has('X-Secure-Access')',
341341
],
342342
],
343343
]);

0 commit comments

Comments
 (0)