File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 265
265
access_control :
266
266
-
267
267
path : ^/_internal/secure
268
- allow_if : " '127.0.0.1' == request.getClientIp() or has_role ('ROLE_ADMIN')"
268
+ allow_if : " '127.0.0.1' == request.getClientIp() or is_granted ('ROLE_ADMIN')"
269
269
270
270
.. code-block :: xml
271
271
279
279
280
280
<config >
281
281
<rule path =" ^/_internal/secure"
282
- allow-if =" '127.0.0.1' == request.getClientIp() or has_role ('ROLE_ADMIN')" />
282
+ allow-if =" '127.0.0.1' == request.getClientIp() or is_granted ('ROLE_ADMIN')" />
283
283
</config >
284
284
</srv : container >
285
285
288
288
'access_control' => array(
289
289
array(
290
290
'path' => '^/_internal/secure',
291
- 'allow_if' => '"127.0.0.1" == request.getClientIp() or has_role ("ROLE_ADMIN")',
291
+ 'allow_if' => '"127.0.0.1" == request.getClientIp() or is_granted ("ROLE_ADMIN")',
292
292
),
293
293
),
294
294
You can’t perform that action at this time.
0 commit comments