【问题标题】:How write this rule using Bolt for Firebase?如何使用 Bolt for Firebase 编写此规则?
【发布时间】:2017-04-22 06:15:03
【问题描述】:

我正在尝试使用 Bolt 编写此规则:

`
{
"rules": {
    "menu": {
      "$id": {
        ".read": "true",
        ".write": 
            "root.child('stores')
                .child(newData.child('store')
                .val())
                .child('user').hasChild(auth.uid)"
      }
   }
  }
}
`

我需要一些帮助,我找不到方法。

【问题讨论】:

    标签: firebase-realtime-database firebase-security


    【解决方案1】:

    本视频介绍了基本的 Firebase 安全规则,包括读取、写入、索引和验证语句。它还展示了如何使用 Bolt 编译器更有效地编写规则 https://youtu.be/fwDK6E1j9nc?t=768

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-10-04
      • 1970-01-01
      • 1970-01-01
      • 2018-08-27
      • 2011-11-28
      • 1970-01-01
      • 2016-12-05
      • 1970-01-01
      相关资源
      最近更新 更多