From 781ab62ee67e5dda8b3a4b674ec43090a617a792 Mon Sep 17 00:00:00 2001 From: handongxun Date: Thu, 24 Jun 2021 11:28:47 +0800 Subject: [PATCH] =?UTF-8?q?update:=20opendb-msg=20=E4=BF=AE=E6=94=B9=20cre?= =?UTF-8?q?ate=20=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- collection/opendb-msg/collection.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collection/opendb-msg/collection.json b/collection/opendb-msg/collection.json index ea82492..b8bc09e 100644 --- a/collection/opendb-msg/collection.json +++ b/collection/opendb-msg/collection.json @@ -3,8 +3,8 @@ "bsonType": "object", "required": ["to_uid", "body", "type"], "permission": { - "read": "auth.uid == doc.to_uid", - "create": false, + "read": "auth.uid == doc.to_uid || auth.uid == doc.from_uid", + "create": "auth.uid != null", "update": false, "delete": false },