21 lines
624 B
Plaintext
21 lines
624 B
Plaintext
rules_version = '2';
|
|
service cloud.firestore {
|
|
match /databases/{database}/documents {
|
|
|
|
// User Profile Documents
|
|
match /users/{userId} {
|
|
allow read, write: if request.auth != null && request.auth.uid == userId;
|
|
|
|
// Ride Summaries and Metadata
|
|
match /rides/{remoteRideId} {
|
|
allow read, write: if request.auth != null && request.auth.uid == userId;
|
|
|
|
// Discrete Events & Performance Benchmarks Subcollections
|
|
match /{allSubcollections=**} {
|
|
allow read, write: if request.auth != null && request.auth.uid == userId;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|