/**
  * Process form
  *
  * @param mixed $entity
  *
  * @return mixed|null The instance of saved entity on successful processing; otherwise, null
  */
 public function process($entity)
 {
     if ($this->securityFacade->isGranted('EDIT', $entity)) {
         return parent::process($entity);
     }
     return null;
 }
Example #2
0
 /**
  * {@inheritdoc}
  */
 public function process($entity)
 {
     if (!$this->taggableHelper->isTaggable($entity)) {
         throw new \LogicException('Target entity should be taggable.');
     }
     return parent::process($entity);
 }
 /**
  * Process form
  *
  * @param mixed $entity
  *
  * @return mixed|null The instance of saved entity on successful processing; otherwise, null
  */
 public function process($entity)
 {
     $this->checkPermissions($entity);
     return parent::process($entity);
 }