gpt4 book ai didi

firebase-realtime-database - Firebase 数据库规则的语法错误

转载 作者:行者123 更新时间:2023-12-04 03:20:35 24 4
gpt4 key购买 nike

{
"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'"
}
}
}

这给我一个错误:

Error saving rules - Line 10: Expected ',' or '}'.

错误提示我由于某种原因缺少括号。我是不是漏掉了逗号之类的东西?

最佳答案

正如@Frank van Puffelen 所说,我只是在“$businessName”之前少了一个逗号。

关于firebase-realtime-database - Firebase 数据库规则的语法错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38604465/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com