scrimba
Learn Firebase
Cloud Firestore
Custom functions in Security Rules
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Custom functions in Security Rules
AboutCommentsNotes
Custom functions in Security Rules
Expand for more info
rules.txt
run
preview
console
rules_version = '2';

service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow write: if request.auth != null;
allow read: if request.auth != null && request.auth.uid == resource.data.uid;
}
}
}
Console
/index.html
-2:18