Skip to content

Commit

Permalink
Add normalization groups
Browse files Browse the repository at this point in the history
  • Loading branch information
KoukiFactori committed Feb 8, 2023
1 parent 75e0283 commit 8a1c6a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@
],
]
)]
#[Put(denormalizationContext: ['groups' => ['set_User']], security: "is_granted('ROLE_USER') && object == user")]
#[Patch(denormalizationContext: ['groups' => ['set_User']], security: "is_granted('ROLE_USER') && object == user")]
#[Put(normalizationContext: ['groups' => ['get_Me', 'get_User']], denormalizationContext: ['groups' => ['set_User']], security: "is_granted('ROLE_USER') && object == user")]
#[Patch(normalizationContext: ['groups' => ['get_Me', 'get_User']], denormalizationContext: ['groups' => ['set_User']], security: "is_granted('ROLE_USER') && object == user")]
class User implements UserInterface, PasswordAuthenticatedUserInterface
{
#[ORM\Id]
Expand Down

0 comments on commit 8a1c6a1

Please sign in to comment.