在Firestore中我不允许读取,如果目标文档不存在。我尝试过以下方法:
service cloud.firestore {
match /databases/{database}/documents {
match /reports/{report} {
allow read: if !exists(/databases/$(database)/documents/reports/{report});
}
}
}
它不起作用,响应是:Missing or insufficient permissions.
。