【发布时间】:2018-05-04 23:23:00
【问题描述】:
我想创建一个 FireStore 规则,在当前日期超过文档中的时间戳值后授予文档读取权限。
这是一个博客网络应用程序。 例如,博主将博文设置为在特定日期向公众开放。
通过阅读文档,这应该可以工作,但它没有。
service cloud.firestore {
match /databases/{database}/documents {
match /Articles/{article}{
allow read: if request.time.date() < resource.data.date
}
}
}
我错过了什么?
【问题讨论】:
-
你是如何保存你的约会的?
标签: firebase firebase-security google-cloud-firestore