How can we limit users from pushing more than one piece of data to the Firebase database in terms of security rules?
I have attempted this approach without success.
{
"rules": {
".read": false,
".write": false,
"voters": {
// Ensuring that only one child can be added at a time by a user
// Each user is restricted to adding just one child
".read": true,
".write": "auth !== null",
".validate": "newData < 2",
"$votersuid": {
".read": true,
".write": "auth.uid == $votersuid",
}
},
}
}