crf-devs / resop

ResOp is a management, planning and projection tool for human and operational resources in a crisis context.
https://resop.aws.mroca.fr/
GNU General Public License v3.0
47 stars 20 forks source link

Merge @IsGranted and @Security #347

Closed vincentchalamon closed 4 years ago

vincentchalamon commented 4 years ago

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