Access Control List Step 18

This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.

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