public function isGranted($attributes, $object = null) { return parent::isGranted($attributes, $object); }
/** * Same as isGranted() but throw exception if it is not instead of return false. * * @param string $attributes * @param mixed $object * * @return boolean */ protected function granted($attributes, $object = null, $message = 'Permission denied') { if (false === parent::isGranted($attributes, $object)) { throw new InsufficientAuthenticationException($message); } return true; }
/** * {@inheritdoc} * * Symfony <2.6 BC. To be removed. */ protected function isGranted($attributes, $object = null) { if (method_exists('Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller', 'isGranted')) { return parent::isGranted($attributes, $object); } return $this->get('security.context')->isGranted($attributes, $object); }
/** * {@inheritdoc} * * @return boolean */ protected function isGranted($attributes, $object = null) { if ($this->getParameter('madrak_io_easy_admin.grants.check') === true) { return parent::isGranted($attributes, $object); } return true; }