提交 8d2b05cc 编写于 作者: DCloud_JSON's avatar DCloud_JSON

纠正`opendb-news-articles.schema.json`错误的权限表达式`doc.uid`为`doc.user_id`

上级 1f3a17fe
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"bsonType": "object", "bsonType": "object",
"required": ["user_id", "title", "content"], "required": ["user_id", "title", "content"],
"permission": { "permission": {
"read": "doc.uid == auth.uid && doc.article_status == 0 || doc.article_status == 1", "read": "doc.user_id == auth.uid && doc.article_status == 0 || doc.article_status == 1",
"create": "auth.uid != null", "create": "auth.uid != null",
"update": "doc.user_id == auth.uid", "update": "doc.user_id == auth.uid",
"delete": "doc.user_id == auth.uid" "delete": "doc.user_id == auth.uid"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册