mirror of
https://gitee.com/dcloud/opendb.git
synced 2024-12-26 14:31:15 +08:00
fix: opendb-news-comments 权限配置错误问题
This commit is contained in:
parent
0256296464
commit
2ed60492cf
@ -5,8 +5,8 @@
|
||||
"permission": {
|
||||
"read": true,
|
||||
"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": {
|
||||
@ -15,7 +15,7 @@
|
||||
"article_id": {
|
||||
"bsonType": "string",
|
||||
"description": "文章ID,opendb-news-posts 表中的`_id`字段",
|
||||
"foreignKey":"opendb-news-articles._id"
|
||||
"foreignKey": "opendb-news-articles._id"
|
||||
},
|
||||
"user_id": {
|
||||
"bsonType": "string",
|
||||
@ -23,13 +23,13 @@
|
||||
"forceDefaultValue": {
|
||||
"$env": "uid"
|
||||
},
|
||||
"foreignKey":"uni-id-users._id"
|
||||
"foreignKey": "uni-id-users._id"
|
||||
},
|
||||
"comment_content": {
|
||||
"bsonType": "string",
|
||||
"description": "评论内容",
|
||||
"title": "评论内容",
|
||||
"trim":"right"
|
||||
"trim": "right"
|
||||
},
|
||||
"like_count": {
|
||||
"bsonType": "int",
|
||||
@ -42,12 +42,12 @@
|
||||
"reply_user_id": {
|
||||
"bsonType": "string",
|
||||
"description": "被回复的评论用户ID,comment_type为1时有效",
|
||||
"foreignKey":"uni-id-users._id"
|
||||
"foreignKey": "uni-id-users._id"
|
||||
},
|
||||
"reply_comment_id": {
|
||||
"bsonType": "string",
|
||||
"description": "被回复的评论ID,comment_type为1时有效",
|
||||
"foreignKey":"opendb-news-comments._id"
|
||||
"foreignKey": "opendb-news-comments._id"
|
||||
},
|
||||
"comment_date": {
|
||||
"bsonType": "timestamp",
|
||||
@ -66,8 +66,7 @@
|
||||
}
|
||||
},
|
||||
"data": [],
|
||||
"index": [
|
||||
{
|
||||
"index": [{
|
||||
"IndexName": "article_id_",
|
||||
"MgoKeySchema": {
|
||||
"MgoIndexKeys": [{
|
||||
|
Loading…
Reference in New Issue
Block a user