|
|
@@ -28,18 +28,20 @@ use Doctrine\ORM\Mapping as ORM;
|
|
|
#[ApiResource(
|
|
|
operations: [
|
|
|
new Get(
|
|
|
- security: 'is_granted(\'ROLE_ORGANIZATION_VIEW\') and object.getOrganization().getId() == user.getOrganization().getId()'
|
|
|
+ security: 'is_granted("ROLE_ORGANIZATION_VIEW") and object.getOrganization().getId() == user.getOrganization().getId()'
|
|
|
),
|
|
|
new Put(
|
|
|
- security: 'is_granted(\'ROLE_ORGANIZATION\') and object.getOrganization().getId() == user.getOrganization().getId()'
|
|
|
+ security: 'is_granted("ROLE_ORGANIZATION") and object.getOrganization().getId() == user.getOrganization().getId()'
|
|
|
),
|
|
|
new Delete(
|
|
|
- security: 'is_granted(\'ROLE_ORGANIZATION\') and object.getOrganization().getId() == user.getOrganization().getId()'
|
|
|
+ security: 'is_granted("ROLE_ORGANIZATION") and object.getOrganization().getId() == user.getOrganization().getId()'
|
|
|
),
|
|
|
new GetCollection(
|
|
|
- security: 'is_granted(\'ROLE_ORGANIZATION_VIEW\')'
|
|
|
+ security: 'is_granted("ROLE_ORGANIZATION_VIEW")'
|
|
|
+ ),
|
|
|
+ new Post(
|
|
|
+ security: 'is_granted("ROLE_ORGANIZATION")'
|
|
|
),
|
|
|
- new Post(),
|
|
|
]
|
|
|
)]
|
|
|
// #[Auditable]
|