Created
April 26, 2017 05:29
-
-
Save MarksCode/e48e0ad1da36199d291ac43b04b8c2cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Under my `"allUsers"` node I'm trying to only allow new data entries to have the following structure: | |
"allUsers" { | |
"$user1: { | |
"name": "user1Name" | |
"uid": "12345" | |
} | |
} | |
I don't want any other values besides `"name"` and `"uid"`. I added a `"other": { ".validate": false }` rule under each `$user`, but for some reason the following write is denied: | |
[![pic][1]][1] | |
Can anybody help me understand why the write fails even though I only have a name and uid in the data? | |
[1]: https://i.stack.imgur.com/bNS4C.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment