Hi Jan, I think what may be the problem there is that while you have write access to the Container, the ACL does not specify any access that applies for children of that Container without an ACL, and therefore does not give you write access to them.
To set this access, you’ll probably want to replace
const updatedAcl = setAgentResourceAccess(
resourceAcl,
webId,
{ read: true, append: true, write: true, control: true }
)
with
let updatedAcl = setAgentResourceAccess(
resourceAcl,
webId,
{ read: true, append: true, write: true, control: true }
)
updatedAcl = setAgentDefaultAccess(
updatedAcl,
webId,
{ read: true, append: true, write: true, control: true }
)
(So in addition to specifying Resource access on the Container, you also set Default access, which specifies what access people have by default on children if they do not have their own ACL.)
Also make sure that that second call extends updatedAcl
, not resourceAcl
again.
Let us know if that helps.