我是Firebase Firestore的新手,我想要定义安全规则。我的数据结构非常simpel,你可以在图片中看到。每个用户都有自己的带有子集合的文档。我希望用户只能读写自己的文档(包括子集合中的文档),所以我的规则应该如下所示: match /databases/{database}/documents= null;
我一直试图使用以下安全规则使子集合中的所有文档完全可读: allow write, update, delete: if false; // This collectionif true; // All documents and sub-collections of this collection are readable }
但是,当我试图读取sell子集合的文档时