diff --git a/collection/uni-id-followers/collection.json b/collection/uni-id-followers/collection.json index 6ca5b04..2ea5d68 100644 --- a/collection/uni-id-followers/collection.json +++ b/collection/uni-id-followers/collection.json @@ -2,6 +2,12 @@ "schema": { "bsonType": "object", "required": ["friend_uid", "follow_uid"], + "permission": { + ".read": true, + ".create": "auth.uid != null", + ".update": false, + ".delete": "auth.uid != null" + }, "properties": { "_id": { "description": "ID,系统自动生成"