W
W
WhatIsHTML2017-01-27 01:24:37
firebase
WhatIsHTML, 2017-01-27 01:24:37

How to allow reading of all fields except one?

There is a profile in which you need to make all fields available for reading except email. The email field is only available to the profile owner.

airport
 created
 email
 name
 ratings
 ratingsList
 type
 uid

I do so. The email field remains available to everyone. How can I make it read-only?
"$profileId": {
        ".indexOn": ".value",
        ".read": true,
        "email": {
          ".read": "auth.uid == $profileId"
        }
      }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question