Skip to content

Commit e9af459

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Update access_denied_handler.rst Update access_control.rst
2 parents e7d04e3 + 4fbf725 commit e9af459

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

security/access_control.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ key:
323323
// the 'role' and 'allow-if' options work like an OR expression, so
324324
// access is granted if the expression is TRUE or the user has ROLE_ADMIN
325325
'roles' => 'ROLE_ADMIN',
326-
'allow_if' => '"127.0.0.1" == request.getClientIp() or request.headers.has('X-Secure-Access')',
326+
'allow_if' => '"127.0.0.1" == request.getClientIp() or request.headers.has("X-Secure-Access")',
327327
],
328328
],
329329
]);

security/access_denied_handler.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ configure it under your firewall:
5151
<!-- config/packages/security.xml -->
5252
<config>
5353
<firewall name="main">
54-
<access_denied_handler>App\Security\AccessDeniedHandler</access_denied_handler>
54+
<access-denied-handler>App\Security\AccessDeniedHandler</access-denied-handler>
5555
</firewall>
5656
</config>
5757

0 commit comments

Comments
 (0)