I'm using firebase and my users are set up like this:
{
"firebase-account-123": {
"users": {
"simplelogin:1": {
"properties"{ "name": "john doe", "email": "[email protected]" }
"children": {
"simplelogin:2":{ "name": "user 2", "email": "[email protected]" },
}
},
"simplelogin:2": {
"properties"{ "name": "user 2", "email": "[email protected]", "disabled": false }
}
}
}
I have "children" which account managers should have access to. I'm new to this and I'm trying to solve some permissions problems I'm having.
My rules currently only allowing the users to read/write their own data.
".read": "auth.uid == $userid", ".write": "auth.uid == $userid"
Does anyone know how I could make it so they also have the ability to write/read data (maybe just in the properties object) for users that are listed in their "children" object?