In Firebase Realtime Database Rules, how do you give write access to the users with a certain child value?
问题 ,"people" : { ".read": "auth != null", "$uid": { }, "e2" : { ".read": "auth.uid != null", ".write": "$uid == auth.uid" }, "l1" : { ".read": "auth.uid != null", ".write": "auth.uid != null" } So e2 is the @ of an email. For example @gmail or @aol or @yahoo. For the l1 child, I want to make the write rule: Write if auth.uid != null && e2 has the same value as the e2 of the person you are writing l1 to. The furthest I could get, is something like this: "data.parent().child(people).hasChildren([