osoc24 / loama

Provide a centralized platform to easily digest and manage the connections between your personal SOLID data vault and the applications that you use.
https://osoc24.github.io/loama/
3 stars 2 forks source link

Add to ACL #21

Closed Zelzahn closed 2 months ago

Zelzahn commented 2 months ago

Fixes #12

Some caveats are provided inside index-file.ts, about functionality that is currently missing.

I did the following flow to test it all:

  1. Make sure there's no index file yet (via Penny)
  2. Do await getOrCreateIndex(store.session, pods[0].pod).then((index) => addPermissions(store.session, index, ["https://css12.onto-deside.ilabt.imec.be/osoc1/README"], true, [Permission.Read, Permission.Write])) inside LOAMA
  3. See the updated index.json inside Penny
  4. See that the public access to the README is now updated to the given permissions

If there's no index file, one is created, the same applies for the ACL of the resource for which we want to change the permissions.