Skip to content

Commit 3189373

Browse files
committed
minor #16091 [Security] Minor fix (sebpacz)
This PR was merged into the 4.4 branch. Discussion ---------- [Security] Minor fix After merging #16089, I found another mistake that I hadn't noticed before. Instead of `'allow-if'` it should be `'allow_if'`. Commits ------- b774cb0 [Security] Minor fix
2 parents 18dc748 + b774cb0 commit 3189373

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
@@ -301,7 +301,7 @@ key:
301301
access_control:
302302
-
303303
path: ^/_internal/secure
304-
# the 'roles' and 'allow-if' options work like an OR expression, so
304+
# the 'roles' 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'
307307
allow_if: "'127.0.0.1' == request.getClientIp() or request.headers.has('X-Secure-Access')"

0 commit comments

Comments
 (0)