API Platform 3: Seguridad para tus tesoros
Campos condicionales por usuario: ApiProperty
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

Check out this code snippet:

#[Groups(['treasure:read', 'treasure:write'])]
#[ApiProperty(readable: false, securityPostDenormalize: 'is_granted("ROLE_ADMIN")')]
public string $description;

What would happen if an admin makes a PATCH request to edit the description?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.