首页 > 解决方案 > 由于规则,Firebase 实时数据库权限被拒绝

问题描述

当我允许“testName”读写为真时,它在子节点上工作,但是,当我在“test”和“testType”上允许时,即使我插入 test 和 testType,它也会拒绝权限。我怎么解决这个问题?

"game": { 
      "$gamerid": {
        "$testName": {
            // ".read": true,
            // ".write": true,
            
            "test": {
            ".read": true,
            ".write": true,
            },
            "testType": {
            ".read": true, 
            ".write": true,
            },
        }   
      }
    },

标签: androidfirebasekotlinfirebase-realtime-database

解决方案


推荐阅读