Controller/CrudController.php
public function checkAccess($attributes, $object = null, string $message = 'Access Denied.')
    {
        $this->denyAccessUnlessGranted($attributes, $object, $message);
    }
public function checkAccess($attributes, $object = null, string $message = 'Access Denied.')
    {
        $this->denyAccessUnlessGranted($attributes, $object, $message);
    }
public function checkAccess ( $ attributes , $ object = null , string $ message = 'Access Denied.' ) { $ this -> denyAccessUnlessGranted ( $ attributes , $ object , $ message ) ; }
Throws an exception unless the attributes are granted against the current authentication token and optionally
supplied object.

@param mixed $attributes The attributes
@param mixed $object The object
@param string $message The message passed to the exception

@throws AccessDeniedException
Throws an exception unless the attributes are granted against the current authentication token and optionally supplied object .