Skip to content

Commit d2ac091

Browse files
committed
Define access controls
1 parent 28eb813 commit d2ac091

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

common/models/review.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,32 @@
3232
"foreignKey": "publisherId"
3333
}
3434
},
35-
"acls": [],
35+
"acls": [
36+
{
37+
"accessType": "*",
38+
"principalType": "ROLE",
39+
"principalId": "$everyone",
40+
"permission": "DENY"
41+
},
42+
{
43+
"accessType": "EXECUTE",
44+
"principalType": "ROLE",
45+
"principalId": "$authenticated",
46+
"permission": "ALLOW",
47+
"property": "create"
48+
},
49+
{
50+
"accessType": "READ",
51+
"principalType": "ROLE",
52+
"principalId": "$everyone",
53+
"permission": "ALLOW"
54+
},
55+
{
56+
"accessType": "WRITE",
57+
"principalType": "ROLE",
58+
"principalId": "$owner",
59+
"permission": "ALLOW"
60+
}
61+
],
3662
"methods": {}
3763
}

0 commit comments

Comments
 (0)