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 265265 access_control :
266266 -
267267 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')"
269269
270270 .. code-block :: xml
271271
279279
280280 <config >
281281 <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')" />
283283 </config >
284284 </srv : container >
285285
288288 'access_control' => array(
289289 array(
290290 '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")',
292292 ),
293293 ),
294294
You can’t perform that action at this time.
0 commit comments