|
@@ -31,17 +31,18 @@ use Doctrine\ORM\Mapping as ORM;
|
|
|
security: 'is_granted(\'ROLE_ORGANIZATION_VIEW\') and object.getBillingSetting().getOrganization().getId() == user.getOrganization().getId()'
|
|
security: 'is_granted(\'ROLE_ORGANIZATION_VIEW\') and object.getBillingSetting().getOrganization().getId() == user.getOrganization().getId()'
|
|
|
),
|
|
),
|
|
|
new Put(
|
|
new Put(
|
|
|
- security: 'object.getBillingSetting().getOrganization().getId() == user.getOrganization().getId()'
|
|
|
|
|
|
|
+ security: 'is_granted(\'ROLE_ORGANIZATION\') and object.getBillingSetting().getOrganization().getId() == user.getOrganization().getId()'
|
|
|
),
|
|
),
|
|
|
new Delete(
|
|
new Delete(
|
|
|
- security: 'object.getBillingSetting().getOrganization().getId() == user.getOrganization().getId()'
|
|
|
|
|
|
|
+ security: 'is_granted(\'ROLE_ORGANIZATION\') and object.getBillingSetting().getOrganization().getId() == user.getOrganization().getId()'
|
|
|
),
|
|
),
|
|
|
new GetCollection(
|
|
new GetCollection(
|
|
|
- security: 'is_granted(\'ROLE_ORGANIZATION_VIEW\')'
|
|
|
|
|
|
|
+ security: 'is_granted(\'ROLE_ORGANIZATION\')'
|
|
|
),
|
|
),
|
|
|
- new Post(),
|
|
|
|
|
- ],
|
|
|
|
|
- security: 'is_granted(\'ROLE_ORGANIZATION\')'
|
|
|
|
|
|
|
+ new Post(
|
|
|
|
|
+ security: 'is_granted(\'ROLE_ORGANIZATION\')'
|
|
|
|
|
+ ),
|
|
|
|
|
+ ]
|
|
|
)]
|
|
)]
|
|
|
// #[Auditable]
|
|
// #[Auditable]
|
|
|
#[BillingSettingDefaultValue(fieldName: 'billingSetting')]
|
|
#[BillingSettingDefaultValue(fieldName: 'billingSetting')]
|