【发布时间】:2020-07-14 21:12:06
【问题描述】:
我正在尝试实施安全规则以限制用户仅访问文档中的特定字段。我的数据结构是这样的:
document {
name: John,
dob: 1994,
email: john@hotmail.com
}
我想将name 字段限制为read, write by owner; dob 字段到read by owner, create by owner; email 到 read by owner, update by owner
我阅读了文档,似乎只能通过安全规则控制对特定文档的访问。它没有提到任何允许访问特定字段的内容。我应该怎么做才能允许访问文档中的特定字段?
【问题讨论】:
标签: firebase google-cloud-firestore firebase-security