Ejemplo n.º 1
0
 /**
  * @EXT\Route(
  *     "/session/event/comment/{sessionEventComment}/delete",
  *     name="api_delete_session_event_comment",
  *     options={"expose"=true}
  * )
  * @EXT\ParamConverter("user", options={"authenticatedUser" = true})
  */
 public function deleteSessionEventCommentAction(User $user, SessionEventComment $sessionEventComment)
 {
     $creator = $sessionEventComment->getUser();
     if ($user->getId() !== $creator->getId()) {
         $this->checkToolAccess();
     }
     $this->cursusManager->deleteSessionEventComment($sessionEventComment);
     return new JsonResponse('success', 200);
 }