mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
AccompanyingPeriodResource: add ACL
This commit is contained in:
@@ -14,6 +14,7 @@ namespace Chill\PersonBundle\DependencyInjection;
|
||||
use Chill\MainBundle\DependencyInjection\MissingBundleException;
|
||||
use Chill\MainBundle\Security\Authorization\ChillExportVoter;
|
||||
use Chill\PersonBundle\Doctrine\DQL\AddressPart;
|
||||
use Chill\PersonBundle\Security\Authorization\AccompanyingPeriodResourceVoter;
|
||||
use Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter;
|
||||
use Chill\PersonBundle\Security\Authorization\PersonVoter;
|
||||
use Exception;
|
||||
@@ -425,11 +426,10 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
|
||||
Request::METHOD_PATCH => true,
|
||||
Request::METHOD_HEAD => false,
|
||||
Request::METHOD_DELETE => false,
|
||||
], /*
|
||||
'roles' => [
|
||||
//Request::METHOD_PATCH => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE
|
||||
],
|
||||
*/
|
||||
'roles' => [
|
||||
Request::METHOD_PATCH => AccompanyingPeriodResourceVoter::EDIT,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
Reference in New Issue
Block a user