Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (14 sloc) 303 Bytes
{
"rules": {
"messages": {
".read": true,
".write": "auth !== null",
"$messageId": {
".validate": "newData.child('name').val() === auth.token.name",
"text": {
".validate": "newData.isString() && newData.val().length < 300"
}
}
}
}
}