mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-11-10 11:09:44 +08:00
update: opendb-msg 修改 create 权限
This commit is contained in:
parent
5abb94b5e9
commit
781ab62ee6
@ -3,8 +3,8 @@
|
|||||||
"bsonType": "object",
|
"bsonType": "object",
|
||||||
"required": ["to_uid", "body", "type"],
|
"required": ["to_uid", "body", "type"],
|
||||||
"permission": {
|
"permission": {
|
||||||
"read": "auth.uid == doc.to_uid",
|
"read": "auth.uid == doc.to_uid || auth.uid == doc.from_uid",
|
||||||
"create": false,
|
"create": "auth.uid != null",
|
||||||
"update": false,
|
"update": false,
|
||||||
"delete": false
|
"delete": false
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user