1
{
"rules": {
"Users": {
"$user_id": {
// grants write access to the owner of this user account
// whose uid must exactly match the key ($user_id)
".write": "$user_id === auth.uid"
}
}
"$businessName": {
".write": "root.child('Users').child(auth.uid).child($businessName).child('Permission s').val() === 'MODERATOR'"
}
}
}
这给了我一个错误:保存规则错误 - 第10行:期望','或'}'。该错误说,由于某种原因,我错过了一个括号,我错过了一个逗号或什么?Firebase数据库规则的语法错误
逗号'' “$ BUSINESSNAME”'之前。 –