public function isGranted($resource, $action = 'view')
    {
        return $this->aclOperator->isAccessGranted($resource, $this->getPermission($action));
    }
public function isGranted($resource, $action = 'view')
    {
        return $this->aclOperator->isAccessGranted($resource, $this->getPermission($action));
    }
public function isGranted ( $ resource , $ action = 'view' ) { return $ this -> aclOperator -> isAccessGranted ( $ resource , $ this -> getPermission ( $ action ) ) ; }
Returns whether the user has access granted or not on the given resource for the given action.

@param mixed  $resource
@param string $action

@return boolean
Returns whether the user has access granted or not on the given resource for the given action .