mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-22 15:18:35 +00:00
15 lines
489 B
Plaintext
15 lines
489 B
Plaintext
service cloud.firestore {
|
|
match /databases/{database}/documents {
|
|
match /{document=**} {
|
|
allow read, write: if request.auth.uid != null;
|
|
}
|
|
// Make sure the uid of the requesting user matches the name of the user
|
|
// document. The wildcard expression {userId} makes the userId variable
|
|
// available in rules.
|
|
match /users/{userId} {
|
|
allow read, update, delete: if request.auth.uid == userId;
|
|
allow create: if request.auth.uid != null;
|
|
}
|
|
}
|
|
}
|