firebase - Firestore 安全规则。允许阅读完整的集合(文档和子集合)
问题描述
我一直在尝试使用以下安全规则使子集合中的所有文档完全可读:
match /books {
allow write, update, delete: if false; // This collection cannot be modified
match /sells {
allow read: if true; // All documents and sub-collections of this collection are readable
}
}
但是,当我尝试阅读出售子集合的文档时,我收到 Firebase 权限错误。我究竟做错了什么?
解决方案
推荐阅读
- r - 如何根据 geom_path 中的方向为箭头着色
- php - PHP 包含或 MySQL 提取
- python-3.x - Spyder控制台找不到keras模块
- ecmascript-6 - 扩展运算符的笑话测试失败
- ruby-on-rails - RoR - 为 Let's Encrypt API 设置私钥时出现 ArgumentError
- css - 将外部 CSS 文件与 iText 7 ConvertToPdf 一起使用
- c - 将变量记录到C中的文件中
- artifactory - 与 JFrog XRay 集成
- python - try 和 except 和线程出错
- javascript - Google API - Javascript 客户端 - 函数返回