Open tsojcanth opened 4 years ago
As stated in the README, I don't intend maintenance of this repository. So if you want this to be added, either your or someone else will need to make a PR (which I'd merge if it looks good)
This would only require changes in solid-acl-parser (solid-acl-utils is only a wrapper for that). In particular, I think following things should be changed:
origin
option to AclRule.tsI think the implementation will be similar to accessTo and defaultForNew, so you could take a look at that and probably just copy it. And you could add a test case which shows that it works as intended.
I guess this would solve the inheriting problem.
If you also want to adjust this option, you could consider adding a addOriginRule
method to AclDoc.ts similar to addDefaultRule
I create an ACL for a file inheriting (defaulting to) an origin predicate, the subject in the new ACL still points to the default location).
for example, starting with an empty https://gaia.solid.community/is.darcy/test/ folder and the following contents in https://gaia.solid.community/is.darcy/.acl:
And then running this code:
the resulting https://gaia.solid.community/is.darcy/test/.acl is the following:
As soon as the new ACL is saved the site loses control privileges on the subfolder.