Access Control List
Use an ACL for fine-grained user authorization
This lesson is available for PRO members or as a single course purchase. Sign-in and choose a plan below.
Get Unlimited PRO Access
OR
*Enrollment provides full access to this course (and updates) for life.
Sample Firestore security rules for an Access Control List (ACL), where the content determines which users have authorization.
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