Files
wehub-resource-sync 2a49a75286
Node.js CI / Test (22) (push) Failing after 1s
chore: import upstream snapshot with attribution
2026-07-13 11:59:37 +08:00

14 lines
547 B
Plaintext

service cloud.firestore {
match /databases/{database}/documents {
// Make sure the uid of the requesting user matches name of the user
// document. The wildcard expression {userId} makes the userId variable
// available in rules.
match /users/{userId} {
allow read, write, create, update, delete: if request.auth.uid != null && request.auth.uid == userId;
}
match /users/{userId}/{document=**} {
allow read, write, create, update, delete: if request.auth.uid != null && request.auth.uid == userId;
}
}
}