You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,8 @@ userSchema.permissions = {
50
50
admin: {
51
51
read: ['status'],
52
52
write: ['status'],
53
-
create:true
53
+
create:true,
54
+
actions: ['merge'],
54
55
},
55
56
owner: {
56
57
read: ['status'],
@@ -71,6 +72,7 @@ The permissions object consists of properties that represent your authorization
71
72
*`remove` - Boolean
72
73
*`write` - [array of fields]*NOTE: if `upsert: true`, the group will need to have `create` permissions too*
73
74
*`read` - [array of fields]
75
+
*`actions` - An array or arbitrary strings that lets you define more complicated actions (usually involving multiple fields or documents) that are allowed. Your own application code will need to handle the updates (likely disabling field level checking for those updates).
74
76
75
77
You can also specify a `defaults` group, which represents permissions that are available to all groups.
0 commit comments