Skip to content

Commit

Permalink
[Referrals] Api security
Browse files Browse the repository at this point in the history
  • Loading branch information
Rémi committed Feb 26, 2025
1 parent 83b60fb commit 44064ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Entity/Referral.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
],
normalizationContext: ['groups' => ['referral_read']],
denormalizationContext: ['groups' => ['referral_write']],
validationContext: ['groups' => ['Default', 'referral_write']]
validationContext: ['groups' => ['Default', 'referral_write']],
security: "is_granted('RENAISSANCE_ADHERENT')",
)]
#[ORM\Entity(repositoryClass: ReferralRepository::class)]
#[ReferralInformations]
Expand Down

0 comments on commit 44064ce

Please sign in to comment.