public function isGranted($attributes, $object = null)
    {
        if ( ! is_array($attributes)) {
            $attributes = [$attributes];
        }

        return $this->authorizationManager->decide($this->getToken(), $attributes, $object);
    }