From 987e14ce61fed0e709c2bf69eebd169d2af21813 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Wed, 28 Oct 2020 20:21:38 +0800 Subject: [PATCH] chore: remove permission dot --- .../opendb-mall-categories/collection.json | 8 ++++---- .../opendb-mall-comments/collection.json | 8 ++++---- collection/opendb-mall-goods/collection.json | 10 +++++----- .../opendb-news-articles/collection.json | 18 +++++++++--------- .../opendb-news-categories/collection.json | 8 ++++---- .../opendb-news-comments/collection.json | 8 ++++---- .../opendb-news-favorite/collection.json | 8 ++++---- collection/opendb-search-hot/collection.json | 8 ++++---- collection/opendb-search-log/collection.json | 8 ++++---- collection/uni-id-followers/collection.json | 8 ++++---- collection/uni-id-roles/collection.json | 8 ++++---- 11 files changed, 50 insertions(+), 50 deletions(-) diff --git a/collection/opendb-mall-categories/collection.json b/collection/opendb-mall-categories/collection.json index 6c72e17..012321c 100644 --- a/collection/opendb-mall-categories/collection.json +++ b/collection/opendb-mall-categories/collection.json @@ -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": { diff --git a/collection/opendb-mall-comments/collection.json b/collection/opendb-mall-comments/collection.json index bc31000..32a2f8f 100644 --- a/collection/opendb-mall-comments/collection.json +++ b/collection/opendb-mall-comments/collection.json @@ -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": { diff --git a/collection/opendb-mall-goods/collection.json b/collection/opendb-mall-goods/collection.json index d7fa634..cb41162 100644 --- a/collection/opendb-mall-goods/collection.json +++ b/collection/opendb-mall-goods/collection.json @@ -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 } } } diff --git a/collection/opendb-news-articles/collection.json b/collection/opendb-news-articles/collection.json index 0bec6d6..21d1831 100644 --- a/collection/opendb-news-articles/collection.json +++ b/collection/opendb-news-articles/collection.json @@ -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": { diff --git a/collection/opendb-news-categories/collection.json b/collection/opendb-news-categories/collection.json index 8a50af0..ea39b77 100644 --- a/collection/opendb-news-categories/collection.json +++ b/collection/opendb-news-categories/collection.json @@ -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": { diff --git a/collection/opendb-news-comments/collection.json b/collection/opendb-news-comments/collection.json index 64c942d..c6682fa 100644 --- a/collection/opendb-news-comments/collection.json +++ b/collection/opendb-news-comments/collection.json @@ -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": { diff --git a/collection/opendb-news-favorite/collection.json b/collection/opendb-news-favorite/collection.json index 0272a08..21f46cb 100644 --- a/collection/opendb-news-favorite/collection.json +++ b/collection/opendb-news-favorite/collection.json @@ -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": { diff --git a/collection/opendb-search-hot/collection.json b/collection/opendb-search-hot/collection.json index affbce6..e6fe976 100644 --- a/collection/opendb-search-hot/collection.json +++ b/collection/opendb-search-hot/collection.json @@ -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": { diff --git a/collection/opendb-search-log/collection.json b/collection/opendb-search-log/collection.json index ed86473..f294c32 100644 --- a/collection/opendb-search-log/collection.json +++ b/collection/opendb-search-log/collection.json @@ -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": { diff --git a/collection/uni-id-followers/collection.json b/collection/uni-id-followers/collection.json index d0513c9..8765622 100644 --- a/collection/uni-id-followers/collection.json +++ b/collection/uni-id-followers/collection.json @@ -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": { diff --git a/collection/uni-id-roles/collection.json b/collection/uni-id-roles/collection.json index 44aaec4..9ef38cb 100644 --- a/collection/uni-id-roles/collection.json +++ b/collection/uni-id-roles/collection.json @@ -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": {