mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 22:41:15 +08:00
update uni-cms schema
This commit is contained in:
parent
8f97662153
commit
50f5ae9fc7
@ -3,7 +3,7 @@
|
|||||||
"bsonType": "object",
|
"bsonType": "object",
|
||||||
"required": ["user_id", "title", "content"],
|
"required": ["user_id", "title", "content"],
|
||||||
"permission": {
|
"permission": {
|
||||||
"read": "doc.user_id == auth.uid && doc.article_status == 0 || doc.article_status == 1",
|
"read": true,
|
||||||
"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"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"content_id"
|
"content_id"
|
||||||
],
|
],
|
||||||
"permission": {
|
"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",
|
"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"
|
||||||
|
Loading…
Reference in New Issue
Block a user