Пример #1
0
 /**
  * @param Request $request
  * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response
  */
 public function updateAction(Request $request)
 {
     $resource = $this->findOr404($request);
     $resourceNode = $resource->getResourceNode();
     $this->denyAccessUnlessGranted(ResourceNodeVoter::EDIT, $resourceNode, 'Unauthorised access to resource');
     return parent::updateAction($request);
 }
Пример #2
0
 /**
  * @param Request $request
  * @return \Symfony\Component\HttpFoundation\RedirectResponse|Response
  */
 public function updateAction(Request $request)
 {
     return parent::updateAction($request);
 }