mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 14:31:15 +08:00
fix: opendb-news-articles 权限配置错误的问题
This commit is contained in:
parent
61581227eb
commit
0256296464
@ -3,10 +3,10 @@
|
||||
"bsonType": "object",
|
||||
"required": ["user_id", "title", "content"],
|
||||
"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",
|
||||
"update": "doc.uid == auth.uid",
|
||||
"delete": "doc.uid == auth.uid"
|
||||
"update": "doc.user_id == auth.uid",
|
||||
"delete": "doc.user_id == auth.uid"
|
||||
},
|
||||
"properties": {
|
||||
"_id": {
|
||||
@ -56,8 +56,7 @@
|
||||
"title": "文章状态",
|
||||
"description": "文章状态:0 草稿箱 1 已发布",
|
||||
"defaultValue": 0,
|
||||
"enum": [
|
||||
{
|
||||
"enum": [{
|
||||
"value": 0,
|
||||
"text": "草稿箱"
|
||||
},
|
||||
@ -102,8 +101,7 @@
|
||||
"bsonType": "int",
|
||||
"title": "开放评论",
|
||||
"description": "评论状态:0 关闭 1 开放",
|
||||
"enum": [
|
||||
{
|
||||
"enum": [{
|
||||
"value": 0,
|
||||
"text": "关闭"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user