Created
July 26, 2016 16:55
-
-
Save kenmhaggerty/1c6395d2478cd12c6667086768aea918 to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"rules" : { | |
"$user_id" : { | |
".read" : "auth.uid == $user_id", // can read if $user_id matches current user | |
".write" : "auth.uid == $user_id", // can read if $user_id matches current user | |
".validate" : "newData.val().isString()" // new data must be string | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment