Hi again,
In this sample:
{ "rules": { "rooms": { // this rule applies to any child of /rooms/, the key for each room id // is stored inside $room_id variable for reference "$room_id": { "topic": { // the room's topic can be changed if the room id has "public" in it ".write": "$room_id.contains('public')" } } } }}
Why would "topic" be writable, since the cascading rule states:
The child rules can only grant additional privileges but cannot revoke a read or write privilege.
As rooms declares no .read or .write, its child should be neither readable, nor writable.
What am I missing here?
Thanks.
F.