Hi all,
I’m trying to allow users to modify the access that other users have to a particular dataset in their pod, using the ‘setAgentResourceAccess’ function in the solid-client Javascript library.
I’ve used the same function for granting users access in the first place and it worked fine, but when trying to update their access isn’t working.
The function API reference says “If rules already exist for the Agent in the given ACL, in the returned ACL, they are replaced by the new rules”, but looking at the screenshot of the dataset’s ACL file below, you can see that the same user is entered as a new entry for each change that is made
Then when I go back to the app and check if the user’s access was updated it always just shows me what it was initially set as
Here is the code that I use to grant/update access:
Is it something to do with how the Agent WebID is being passed to the function, as a string and not a UrlString? That’s the only thing I can think of since the same user is appearing multiple times under a different URI for each time a change is made (can see in the first screenshot)
If anyone has an idea on what’s going on here it’d be greatly appreciated, the application repo is at Dylan Storey / Solid Health App · GitLab
Thanks,
Dylan