crf-devs/resop

Merge @IsGranted and @Security

Closed this issue · 0 comments

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)")