【发布时间】:2021-10-22 14:07:18
【问题描述】:
以下代码中的第二条和第三条规则按预期工作。我正在尝试指定mailingList 集合的访问条件以允许任何人写入。但是,这始终是阻塞的。
service cloud.firestore {
match /databases/{database}/documents {
match /malingList/{doc} {
allow write: if true;
}
match /metadata/{doc} {
allow read: if request.auth.uid != null;
}
match /taken/{doc}{
allow read: if request.auth.uid != null;
allow read,write: if
request.auth.uid == doc;
}
}
}
【问题讨论】:
-
"这总是阻塞" => 在哪个上下文中?你能分享用于写入这个集合的代码吗?
标签: firebase google-cloud-firestore firebase-security