Answer the question
In order to leave comments, you need to log in
How can annotations check if the user is the owner when going to editAction?
There is such an Action in the controller:
/**
* Displays a form to edit an existing Offer entity.
*
* @Route("/{id}/edit", name="offer_edit")
* @Method({"GET", "POST"})
* @Security("has_role('ROLE_USER')")
*/
public function editAction(Request $request, Offer $offer)
{ // ...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question