denyAccessUnlessGranted() protected method

Throws an exception unless the attributes are granted against the current authentication token and optionally supplied object.
protected denyAccessUnlessGranted ( mixed $attributes, mixed $object = null, string $message = 'Access Denied.' )
$attributes mixed The attributes
$object mixed The object
$message string The message passed to the exception
Ejemplo n.º 1
0
 public function denyAccessUnlessGranted($attributes, $object = null, $message = 'Access Denied.')
 {
     parent::denyAccessUnlessGranted($attributes, $object, $message);
 }
 /**
  * {@inheritdoc}
  *
  * @return boolean
  */
 protected function denyAccessUnlessGranted($attributes, $object = null, $message = 'Access Denied.')
 {
     if ($this->getParameter('madrak_io_easy_admin.grants.check') === true) {
         return parent::denyAccessUnlessGranted($attributes, $object, $message);
     }
 }