|
|
@@ -18,7 +18,7 @@ use Symfony\Component\Validator\Constraints as Assert;
|
|
|
'get' => [
|
|
|
'method' => 'GET',
|
|
|
'path' => '/cotisations/{organizationId}',
|
|
|
- 'security' => 'is_granted("COTISATION_CALL", object)',
|
|
|
+ 'security' => 'is_granted("ROLE_COTISATION", object) and object.getOrganizationId() == user.getOrganization().getId()',
|
|
|
]
|
|
|
]
|
|
|
)]
|
|
|
@@ -65,4 +65,4 @@ class Cotisation implements ApiResourcesInterface
|
|
|
|
|
|
return $this;
|
|
|
}
|
|
|
-}
|
|
|
+}
|