Here is how I have structured my firebase:
"ROOT": {
"Group": {
"User": {
"Name": "",
"Email": "",
"Gender": "",
"Mobile": "",
"Time": ""
}
}
}
I am looking for a way to prevent users from deleting all data by running ref.remove() directly from the client browser inspector without any prompt.
What I want is to allow client scripts to execute firebase operations such as:
- Adding or updating data to /ROOT/, this means adding more child nodes under "Group" like Group2, Group3..., but they should not be able to delete this node.
- Adding, updating, and deleting data under /ROOT/Group/.
Could someone please advise on how to set up the security rules for this? Thank you.