Hi I want give Authenticated Agents the Submitter Authorrization.
Is there any decision about this SPEC https://github.com/solid/solid-spec/blob/master/acl-inheritance.md
Do I have to use acl:Default or acl:DefaultForNew ?
let aclInboxContent = `@prefix : <#>.
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
@prefix inbox: <./>.
@prefix c: </profile/card#>.
:Append
a acl:Authorization;
acl:accessTo <./>;
acl:agentClass acl:AuthenticatedAgent;
acl:default <./>;
acl:defaultForNew <./>;
acl:mode acl:Append.
:ControlReadWrite
a acl:Authorization;
acl:accessTo <./>;
acl:agent c:me;
acl:default <./>;
acl:defaultForNew <./>;
acl:mode acl:Control, acl:Read, acl:Write.
:Read
a acl:Authorization;
acl:accessTo <./>;
acl:default <./>;
acl:defaultForNew <./>;
acl:mode acl:Read.`
let file = root+"test5/.acl"
await module.fc.createFile (file, aclInboxContent, "text/turtle") .then (success => {
console.log (`Created $ {file} .`)
}, err => console.log (err));
2nd question, is it better to use subjects like :READ, :APPEND or subjects like <#owner> <#public> ???
let aclInboxContentOK = '# ACL resource for the public folder \n' +
'@prefix acl: <http://www.w3.org/ns/auth/acl#>. \n' +
'@prefix foaf: <http://xmlns.com/foaf/0.1/>. \n\n' +
'# The owner has all permissions\n' +
'<#owner>\n' +
' a acl:Authorization;\n' +
' acl:agent <https://spoggy-test.solid.community/profile/card#me>;\n' +
' acl:accessTo <./>;\n' +
' acl:default <./>;\n' +
' acl:defaultForNew <./>;\n' +
' acl:mode acl:Read, acl:Write, acl:Control.\n\n' +
'# The public has read permissions\n' +
'<#public>\n' +
' a acl:Authorization;\n' +
' acl:agentClass foaf:Agent;\n' +
' acl:accessTo <./>;\n' +
' acl:default <./>;\n' +
' acl:defaultForNew <./>;\n' +
' acl:mode acl:Read.'