I have user profile $profileId
in firebase with fields
email
name
ratings
type
uid
I want to get access for all public users to read profile data except email
. I tried this
"$profileId": {
".indexOn": ".value",
".read": true,
"email": {
".read": "auth.uid == $profileId"
}
}
But all fields are public in this case. How I can hide email
field without changing db structure?
Thanks