我在该节点下有一个节点组,我保留每个组的信息。其中的一个是 adminID 。我只希望管理员能够更改组信息。因此,我已经按照如下方式编写了 firebase安全规则,但该规则不起作用。
"Groups":{
".indexOn":["totalBooks"],
"$group_id":{
".write": "root.child('Groups').child($group_id).child('adminID').val() === auth.uid"
}
}