如果有那个孩子,Firebase会给与称赞

问题描述 投票:0回答:1

所以我试图允许从父母那里读取数据,但是我不确定自己做错了什么,可能是某些语法,但是我尝试了很多组合,但我不知道为什么,正确的做法是什么它?预先感谢!

尝试了很多与“}”的组合,但是它总是说我的语法是错误的

  "rules": {
"ca": {    
  "$date": {
       "$game": { 
                  ///if($game.hasChild(auth.uid))
           "$uid":{
              ".read": "$uid === auth.uid",
          ".write": "$uid === auth.uid"
          }
        }
      }
    }
}

如果用户来自$ game,则允许从那里读取数据以及读取自己的数据。。谢谢!

firebase security firebase-authentication firebase-security-rules
1个回答
0
投票

Firebase安全规则本身不会过滤数据。

© www.soinside.com 2019 - 2024. All rights reserved.