|
|
@@ -15,7 +15,12 @@ use Symfony\Component\Serializer\Annotation\Groups;
|
|
|
collectionOperations:[],
|
|
|
itemOperations: [
|
|
|
'get' => [
|
|
|
- 'security' => 'is_granted("ROLE_TEXTO") and object.getOrganizationId() == user.getOrganization().getId()',
|
|
|
+ 'security' => '(is_granted("ROLE_ADMIN_CORE") or
|
|
|
+ is_granted("ROLE_ADMINISTRATIF_MANAGER_CORE") or
|
|
|
+ is_granted("ROLE_PEDAGOGICS_MANAGER_CORE") or
|
|
|
+ is_granted("ROLE_FINANCIAL_MANAGER_CORE") or
|
|
|
+ is_granted("ROLE_TEXTO")
|
|
|
+ ) and object.getOrganizationId() == user.getOrganization().getId()',
|
|
|
'method' => 'GET',
|
|
|
'path' => '/mobyt/status/{organizationId}',
|
|
|
'requirements' => ['organizationId' => '\d+'],
|