【发布时间】:2017-08-17 13:17:32
【问题描述】:
在 firebase 安全规则中,我们如何限制用户向数据库推送多个数据?
我一直在尝试,但没有成功
{
"rules": {
".read": false,
".write": false,
"voters": {
// restrict user to adding child more than one in this path
// one user only alowed to add one child
".read": true,
".write": "auth !== null",
".validate": "newData < 2",
"$votersuid": {
".read": true,
".write": "auth.uid == $votersuid",
}
},
}
}
【问题讨论】:
标签: javascript json security firebase rules