Skip to content

Instantly share code, notes, and snippets.

@bdfinlayson
Forked from sscotth/security.json
Last active August 29, 2015 14:15
Show Gist options
  • Save bdfinlayson/1510b8f0de1a4aa4cc8d to your computer and use it in GitHub Desktop.
Save bdfinlayson/1510b8f0de1a4aa4cc8d to your computer and use it in GitHub Desktop.

Revisions

  1. @sscotth sscotth revised this gist Dec 12, 2014. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion security.json
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,6 @@
    "rules": {
    "users": {
    "$uid": {
    // grants read/write access to the owner of this user account whose uid must exactly match the key ($uid)
    ".write": "auth !== null && auth.uid === $uid",
    ".read": "auth !== null && auth.uid === $uid"
    }
  2. @sscotth sscotth created this gist Dec 12, 2014.
    11 changes: 11 additions & 0 deletions security.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    {
    "rules": {
    "users": {
    "$uid": {
    // grants read/write access to the owner of this user account whose uid must exactly match the key ($uid)
    ".write": "auth !== null && auth.uid === $uid",
    ".read": "auth !== null && auth.uid === $uid"
    }
    }
    }
    }