Firebase安全规则:验证时间戳类型数据与请求的日期相同或迟
我想验证时间戳类型数据是否与请求的日期相同或迟到。
我以这种方式写了规则。
task.due_date.date() >= request.time.date()
如果日期是将来的日期,则可以正常工作。
但是,如果日期与请求的日期相同,则无法书写。
规则应该如何编写?
I want to verify if the Timestamp type data is the same or later than the requested date.
I wrote rules in this way.
task.due_date.date() >= request.time.date()
If the date is in the future than the requested date, it works fine.
However, if the date is the same as the date of the request, it cannot be written.
How should the rules be written?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设
task
一个本地变量,并且有效,并且具有有效的due_date
字段...Assuming
task
a local variable and is valid and has a validdue_date
field...