I'm trying to redo this example from the official firebase docs: https://www.firebase.com/docs/security/quickstart.html > "Make your rules dynamic".
This is my data:
These are my rules:
{
"rules": {
"messages": {
"$message": {
".read": true
}
}
}
}
When I'm now trying to access them I get an error:
Error: permission_denied: Client doesn't have permission to access the desired data.
My issue somehow has to be related to the "$message"-variable, because if I put ".read": true above "$message" it works.
Can anyone help me out on this please?