Skip to content

Commit 131e93e

Browse files
RubenVerborghkjetilk
authored andcommitted
Make entire profile folder public read.
Fixes #734.
1 parent 8427eb8 commit 131e93e

File tree

3 files changed

+20
-26
lines changed

3 files changed

+20
-26
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# ACL resource for the profile folder
2+
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
3+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
4+
5+
# The owner has all permissions
6+
<#owner>
7+
a acl:Authorization;
8+
acl:agent <{{webId}}>;
9+
acl:accessTo <./>;
10+
acl:defaultForNew <./>;
11+
acl:mode acl:Read, acl:Write, acl:Control.
12+
13+
# The public has read permissions
14+
<#public>
15+
a acl:Authorization;
16+
acl:agentClass foaf:Agent;
17+
acl:accessTo <./>;
18+
acl:defaultForNew <./>;
19+
acl:mode acl:Read.

default-templates/new-account/profile/card.acl

Lines changed: 0 additions & 25 deletions
This file was deleted.

test/integration/account-creation-oidc-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('AccountManager (OIDC account creation tests)', function () {
122122
var card = read(path.join('accounts/nicola.' + domain,
123123
'profile/card'))
124124
var cardAcl = read(path.join('accounts/nicola.' + domain,
125-
'profile/card.acl'))
125+
'profile/.acl'))
126126
var prefs = read(path.join('accounts/nicola.' + domain,
127127
'settings/prefs.ttl'))
128128
var inboxAcl = read(path.join('accounts/nicola.' + domain,

0 commit comments

Comments
 (0)