Security Step 9

This lesson is only available for PRO members. Sign-in and choose a plan below.

Monthly

$25/month
  • Unlimited course access
  • Cancel anytime
  • Slack #pro-member invite
  • AngularFirebase Survival Guide Book

Quarterly

$50/3mo
  • All monthly tier benefits
  • 33.33% discount
  • 🔥 Free Sticker

Lifetime

$300/one-time
  • All monthly tier Benefits
  • One-time payment
  • 🔥 Free sticker & 👔 T-Shirt

file_type_firebase rules.json
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if false;
    }
    
    match /accounts/{id} {
      allow read, write: if false;
    }

    match /users/{id} {
      allow read, write: if id == request.auth.uid;
    }

    match /profiles/{id} {
      allow read;
      allow write: if id == request.auth.uid;
    }

  }
}
    

Q&A Chat