eZ\Publish\Core\MVC\Symfony\Controller\Controller::isGranted PHP Method

isGranted() public method

Checks if current user has granted access to provided attribute.
public isGranted ( Attribute $attribute ) : boolean
$attribute eZ\Publish\Core\MVC\Symfony\Security\Authorization\Attribute
return boolean
    public function isGranted(AuthorizationAttribute $attribute)
    {
        return $this->container->get('security.authorization_checker')->isGranted($attribute);
    }