Skip to content
This repository was archived by the owner on Sep 25, 2019. It is now read-only.
This repository was archived by the owner on Sep 25, 2019. It is now read-only.

Add a newAclForResource() helper method #8

Description

@dmitrizagidulin

Currently, in order to create a new ACL resource, one has to do something like:

let url = 'https://example.com/resource1'
solid.web.options(url)
  .then(response => {
    let aclUrl = response.aclAbsoluteUrl()
    let ps = new PermissionSet(url, aclUrl, response.isContainer(), { rdf, webClient })
    // .. set up permissions here
    return ps.save()
  })

A helper method would make this process easier. So, instead:

let url = 'https://example.com/resource1'
solid.newAclForResource(url)
  .then(permissionSet => {
     // set up permissions
     return permissionSet.save()
  })

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions