
can anyone tell what is wrong with this set of firebase rules

can anyone tell what is wrong with this set of firebase rules
Try this:
{
"rules": {
"notice": {
"$uid": {
".read": "$uid === auth.uid",
".write": "$uid === auth.uid"
}
}
}
}
but i do not want like this i want that an authenticated owner can write to database but anyone can read the database.
i a sorry i asked the question wrongly i found a way to fix this sorryagain
i am sorry i asked the question wrongly i found a way to fix this sorry again
Then like this:
Read All, but Write only to a User's Area
"rules": {
"notice": {
"$uid": {
".read": true,
// or ".read": "auth.uid != null" for only authenticated users
".write": "auth.uid == $uid"
}
}
}
}
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.