From 78e89dc2d4a20b8af47dfdc2629cdb00227419a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E7=BA=A2=E4=BF=9D?= Date: Tue, 27 Oct 2020 17:13:08 +0800 Subject: [PATCH] update collection/opendb-news-favorite/collection.json. --- collection/opendb-news-favorite/collection.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/collection/opendb-news-favorite/collection.json b/collection/opendb-news-favorite/collection.json index a9a45c6..264a303 100644 --- a/collection/opendb-news-favorite/collection.json +++ b/collection/opendb-news-favorite/collection.json @@ -2,6 +2,12 @@ "schema": { "bsonType": "object", "required": ["user_id", "article_id"], + "permission": { + ".read": true, + ".create": "auth.uid != null", + ".update": false, + ".delete": "doc.uid == auth.uid" + }, "properties": { "_id": { "description": "ID,系统自动生成"