update uni-cms schema

This commit is contained in:
chenruilong 2023-04-03 12:04:27 +08:00
parent 8f97662153
commit 50f5ae9fc7
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
"bsonType": "object",
"required": ["user_id", "title", "content"],
"permission": {
"read": "doc.user_id == auth.uid && doc.article_status == 0 || doc.article_status == 1",
"read": true,
"create": "auth.uid != null",
"update": "doc.user_id == auth.uid",
"delete": "doc.user_id == auth.uid"

View File

@ -7,7 +7,7 @@
"content_id"
],
"permission": {
"read": "doc.user_id == auth.uid && doc.article_status == 0 || doc.article_status == 1",
"read": "doc.user_id == auth.uid",
"create": "auth.uid != null",
"update": "doc.user_id == auth.uid",
"delete": "doc.user_id == auth.uid"