/** * {@inheritdoc} */ public function rm($hash) { $this->setConnectorFromPlugin(); if ($this->connector->security->isGranted('IS_AUTHENTICATED_FULLY')) { return parent::rm($hash); } }
/** * {@inheritdoc} */ public function rm($hash) { $this->setConnectorFromPlugin(); if ($this->connector->security->isGranted('ROLE_ADMIN')) { return parent::rm($hash); } }
/** * {@inheritdoc} */ public function rm($hash) { $this->setConnectorFromPlugin(); if ($this->allow()) { return parent::rm($hash); } }