Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
BufferUnderflower authored Jan 17, 2020
1 parent 643c9e3 commit 06d331d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _includes/parse-server/class-level-permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,16 @@ These are similar to `pointerFields`, but cover multiple operations at once:
- `delete`,
- `addField`

Equivalnt scheme can be defined shorter:

```js
// And schema
{
classLevelPermissions:
{
"update": {
"pointerFields": ["moderators"],
},
"readUserFields": ["owner", "foollowers", "moderators"],
"readUserFields": ["owner", "followers", "moderators"],
"writeUserFields": ["owner"]
...
}
Expand Down

0 comments on commit 06d331d

Please sign in to comment.