salut a tous,
je ne comprends pas pourquoi cette ligne
me retourne une erreur :Code:@Security("is_granted('ROLE_USER') and user === ad.getAuthor")
Alors que j'ai bien un champ Author dans mon entité !Citation:
Notice: Undefined property: App\Entity\Ad::$getAuthor
Je veux sécuriser l’accès a la modification d'une annonce. Si cette annonce appartient bien a l'utilisateur connecté alors l’accès est autorisé.
Merci a vous.