household address: rely on ROLE_USER for household address api point role

This commit is contained in:
nobohan 2021-06-07 15:26:24 +02:00
parent 6c126b0581
commit f39fe05dd5

View File

@ -542,11 +542,7 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
Request::METHOD_GET => false,
Request::METHOD_HEAD => false,
],
'controller_action' => 'householdAddressApi',
'roles' => [
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\PersonVoter::SEE,
Request::METHOD_DELETE => \Chill\PersonBundle\Security\Authorization\PersonVoter::SEE
]
'controller_action' => 'householdAddressApi'
],
]
],