Access Control List Step 18

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

Sample Firestore security rules for an Access Control List (ACL), where the content determines which users have authorization.

file_type_firebase rules.json
match /posts/{document} {

    allow read;
    allow write: if resource.data.members.hasAny(request.auth.uid);

}

example of an Access Control List in Firestore

example of an Access Control List in Firestore

Q&A Chat