Skip to content

Commit

Permalink
Add users with permissions and example hidden field for default user …
Browse files Browse the repository at this point in the history
…alice
  • Loading branch information
6abotage committed Aug 24, 2021
1 parent 9ab7139 commit c3a8110
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
26 changes: 26 additions & 0 deletions config/acmsConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,31 @@
"name": "Arabic",
"textDirection": "rtl"
}
],
"users": [
{
"id": "alice",
"name": "Alice",
"permissions": {
"include": [
"**"
],
"exclude": [
"hiddenForAlice",
"citation001/year"
]
}
},
{
"id": "admin",
"name": "Admin",
"permissions": {
"include": [
"**"
],
"exclude": [
]
}
}
]
}
1 change: 1 addition & 0 deletions config/content/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"template": "book",
"hiddenForAlice": "text only visible for admins",
"author": "Scott Chacon",
"description" : {
"de" : "Die Arbeit",
Expand Down
4 changes: 4 additions & 0 deletions config/templates/book/index.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"fields": [
{
"id": "hiddenForAlice",
"type": "string"
},
{
"id": "author",
"type": "string"
Expand Down

0 comments on commit c3a8110

Please sign in to comment.