isGranted() protected method

Checks if the attributes are granted against the current authentication token and optionally supplied object.
protected isGranted ( mixed $attributes, mixed $object = null ) : boolean
$attributes mixed The attributes
$object mixed The object
return boolean
 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;
 }