Slide 55
Slide 55 text
{
"rules": {
".write": false,
"lives": {
"$live_id": {
".read": "root.child('alive_lives').child($live_id).val() === true",
"messages": {
"$message_id": {
".validate": "newData.hasChildren(['user', 'image', 'text'])"
}
},
"notifications": {
"buy_item": {
".validate": "newData.hasChildren(['text'])"
}
}
}
},
"alive_lives": {
".write": false,
".read": false
}
}
}