Skip to content

Commit 44a389e

Browse files
committed
minor #13829 Update access_control.rst (atailouloute)
This PR was merged into the 3.4 branch. Discussion ---------- Update access_control.rst Small fix Commits ------- 2c19997 Update access_control.rst
2 parents a123e09 + 2c19997 commit 44a389e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/access_control.rst

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

0 commit comments

Comments
 (0)