chore: remove permission dot

This commit is contained in:
wangyaqi 2020-10-28 20:21:38 +08:00
parent fdac3feb1d
commit 987e14ce61
11 changed files with 50 additions and 50 deletions

View File

@ -3,10 +3,10 @@
"bsonType": "object",
"required": ["name"],
"permission": {
".read": true,
".create": false,
".update": false,
".delete": false
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {

View File

@ -3,10 +3,10 @@
"bsonType": "object",
"required": ["goods_id", "user_id", "content"],
"permission": {
".read": true,
".create": "auth.uid != null",
".update": "doc.user_id == auth.uid",
".delete": "doc.user_id == auth.uid"
"read": true,
"create": "auth.uid != null",
"update": "doc.user_id == auth.uid",
"delete": "doc.user_id == auth.uid"
},
"properties": {
"_id": {

View File

@ -3,10 +3,10 @@
"bsonType": "object",
"required": ["goods_sn", "name", "remain_count", "month_sell_count", "total_sell_count", "comment_count", "is_real", "is_on_sale", "is_alone_sale", "is_best", "is_new", "is_hot"],
"permission": {
".read": "doc.is_on_sale == true",
".create": false,
".update": false,
".delete": false
"read": "doc.is_on_sale == true",
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {
@ -108,7 +108,7 @@
"bsonType": "string",
"description": "商家备注,仅商家可见",
"permission": {
".read": false
"read": false
}
}
}

View File

@ -3,10 +3,10 @@
"bsonType": "object",
"required": ["user_id", "title", "content", "article_status", "view_count", "like_count", "is_sticky", "is_essence", "comment_status", "comment_count","mode"],
"permission": {
".read": true,
".create": "auth.uid != null",
".update": "doc.uid == auth.uid",
".delete": "doc.uid == auth.uid"
"read": true,
"create": "auth.uid != null",
"update": "doc.uid == auth.uid",
"delete": "doc.uid == auth.uid"
},
"properties": {
"_id": {
@ -45,28 +45,28 @@
"bsonType": "int",
"description": "阅读数量",
"permission": {
".write": false
"write": false
}
},
"like_count": {
"bsonType": "int",
"description": "喜欢数、点赞数",
"permission": {
".write": false
"write": false
}
},
"is_sticky": {
"bsonType": "bool",
"description": "是否置顶",
"permission": {
".write": false
"write": false
}
},
"is_essence": {
"bsonType": "bool",
"description": "阅读加精",
"permission": {
".write": false
"write": false
}
},
"comment_status": {
@ -79,7 +79,7 @@
"bsonType": "int",
"description": "评论数量",
"permission": {
".write": false
"write": false
}
},
"last_comment_user_id": {

View File

@ -3,10 +3,10 @@
"bsonType": "object",
"required": ["name"],
"permission": {
".read": true,
".create": false,
".update": false,
".delete": false
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {

View File

@ -3,10 +3,10 @@
"bsonType": "object",
"required": ["article_id", "user_id", "comment_content", "like_count", "comment_type", "reply_user_id", "reply_comment_id"],
"permission": {
".read": true,
".create": "auth.uid != null && get(`database.opendb-news-article.${doc.article_id}`).comment_status == 1",
".update": "doc.uid == auth.uid",
".delete": "doc.uid == auth.uid"
"read": true,
"create": "auth.uid != null && get(`database.opendb-news-article.${doc.article_id}`).comment_status == 1",
"update": "doc.uid == auth.uid",
"delete": "doc.uid == auth.uid"
},
"properties": {
"_id": {

View File

@ -3,10 +3,10 @@
"bsonType": "object",
"required": ["user_id", "article_id"],
"permission": {
".read": true,
".create": "auth.uid != null",
".update": false,
".delete": "doc.uid == auth.uid"
"read": true,
"create": "auth.uid != null",
"update": false,
"delete": "doc.uid == auth.uid"
},
"properties": {
"_id": {

View File

@ -3,10 +3,10 @@
"bsonType": "object",
"required": ["content", "count"],
"permission": {
".read": true,
".create": false,
".update": false,
".delete": false
"read": true,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {

View File

@ -3,10 +3,10 @@
"bsonType": "object",
"required": ["content"],
"permission": {
".read": false,
".create": false,
".update": false,
".delete": false
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {

View File

@ -3,10 +3,10 @@
"bsonType": "object",
"required": ["friend_uid", "follow_uid"],
"permission": {
".read": true,
".create": "auth.uid != null",
".update": false,
".delete": "auth.uid != null"
"read": true,
"create": "auth.uid != null",
"update": false,
"delete": "auth.uid != null"
},
"properties": {
"_id": {

View File

@ -5,10 +5,10 @@
"role_id"
],
"permission": {
".read": false,
".create": false,
".update": false,
".delete": false
"read": false,
"create": false,
"update": false,
"delete": false
},
"properties": {
"_id": {