Merge @IsGranted and @Security
Closed this issue · 0 comments
vincentchalamon commented
The following:
@IsGranted(CommissionableAssetVoter::CAN_EDIT, subject="asset")
@Security("asset.organization.id == organization")
could be replaced by:
@Security("asset.organization.id == organization and is_granted('CAN_EDIT', asset)")