Here is my rules and security model :
{
"rules": {
"users": {
".read" : "true",
".write" : "auth != null && data.val()===null",
"$uid": {
".write" : "auth != null && auth.uid==$uid || data.val()===null"
}
}
}
}
This a firebase for a mobile app. Imagine the $UID has a branch named RATING. I don't want one authentifed user can update this information. How can I prevent it ? I could do maybe this by adding this line :
"rating": {
".write": "false"
}
But in this case how can the app update the rating ?
I'm stuck on it, please give me some help cos I don't understand how I can write in firebase from a server side (like firebase hosting or webscript.io).
And forgive me this question if you think it's a stupid one.