The security rules dont cascade, like the docs says.
This picture demonstrates the result of an authorized read request to path /foo/baz/bar/
done with the simulator.
The Firebase Docs says this (code example is relevant to the docs):
{
"rules": {
"foo": {
".read": true,
".write": false
}
}
}
.read and .write rules cascade, so this ruleset grants read access to any data at path /foo/ as well as any deeper paths such as /foo/bar/baz. Note that .read and .write rules shallower in the database override deeper rules, so read access to /foo/bar/baz would still be granted in this example even if a rule at the path /foo/bar/baz evaluated to false.
Why do i get the opposite effect?