【发布时间】:2018-05-27 05:30:23
【问题描述】:
考虑这条安全规则
service cloud.firestore {
match /databases/{database}/documents {
match /notifications/{user} {
allow read, write: if request.auth.uid != null;
}
match /items/{item} {
allow read: if true;
allow write: if false
}
}
}
我想访问参数 {item} 的值。有没有办法做到这一点?对于云功能,它类似于“context.params.item”。对于 Firestore 安全规则,我需要类似的东西。
【问题讨论】:
标签: javascript firebase google-cloud-firestore firebase-security