@inrupt/solid-client
    Preparing search index...

    Function hasResourceAcl

    • function is still experimental and subject to change, even in a non-major release.
      

      Verifies whether the given Resource has a resource ACL (Access Control List) attached.

      The [[hasResourceAcl]] function checks that:

      • a given Resource has a resource ACL attached, and
      • the user calling [[hasResourceAcl]] has Control access to the Resource.

      To retrieve a Resource with its ACLs, see [[getSolidDatasetWithAcl]].

      Type Parameters

      Parameters

      • resource: Resource

        A Resource that might have an ACL attached.

      Returns resource is Resource & WithAcl & { internal_acl: { resourceAcl: AclDataset } } & WithResourceInfo & {} & {
          internal_resourceInfo: { aclUrl: string };
      }

      true if the Resource has a resource ACL attached that is accessible by the user.