Skip to content

Instantly share code, notes, and snippets.

@sakulstra
Created February 1, 2017 14:04
Show Gist options
  • Save sakulstra/40e04e6403cda25fa6967d265629754c to your computer and use it in GitHub Desktop.
Save sakulstra/40e04e6403cda25fa6967d265629754c to your computer and use it in GitHub Desktop.
path /hashes/{userid} {
read() {isCurrentUser(userid)}
}
path /hashes/{userid}/{id} {
read() {isCurrentUser(userid)}
write() {isCurrentUser(userid)}
}
isCurrentUser(uid) { auth != null && auth.uid == uid }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment