【问题标题】:Setting up administrator rules in firebase在 Firebase 中设置管理员规则
【发布时间】:2019-06-03 07:31:48
【问题描述】:

您好,我正在尝试实现一个数据库,客户可以在其中在线发送投诉,并且一些主管可以对其进行审查,我使用的数据库是 firebase,

作为数据库所有者,我有权检查数据库的内容,但我如何让主管在我不在照片中的情况下检查它们?

我听说它叫做“设置仪表板”之类的,但是在搜索时我找不到任何特定于 android 的东西。

【问题讨论】:

    标签: android database firebase-realtime-database firebase-authentication


    【解决方案1】:

    我想这就是你要找的。​​p>

    // These rules grant access to a node matching the authenticated
    // user's ID from the Firebase auth
    token {
       "rules": { 
         "users": {
            "$uid": { 
               ".read": "$uid === auth.uid",
                ".write":"$uid === auth.uid" }
         }
        } 
       }
    

    欲了解更多信息,请查看下面的链接 https://firebase.google.com/docs/database/security/quickstart

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-20
      • 1970-01-01
      • 2018-11-21
      • 2017-06-15
      • 2021-08-26
      • 1970-01-01
      • 2021-06-24
      • 2022-12-03
      相关资源
      最近更新 更多