Skip to content

Instantly share code, notes, and snippets.

@JohnProg
Created April 19, 2020 20:00
Show Gist options
  • Select an option

  • Save JohnProg/014211dfcad128f9f11807d5a22febc7 to your computer and use it in GitHub Desktop.

Select an option

Save JohnProg/014211dfcad128f9f11807d5a22febc7 to your computer and use it in GitHub Desktop.

Revisions

  1. JohnProg created this gist Apr 19, 2020.
    11 changes: 11 additions & 0 deletions Firebase Auth Rules
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    Firebase
    {
    "rules": {
    "userAddedCars": {
    "$uid": {
    ".read": "$uid == auth.uid",
    ".write": "$uid == auth.uid || root.child('users').child(auth.uid).child('admin').val() == true"
    }
    }
    }
    }