mirror of
https://git.mirrors.martin98.com/https://github.com/jina-ai/reader
synced 2025-04-18 11:50:00 +08:00
33 lines
926 B
Plaintext
33 lines
926 B
Plaintext
rules_version = '2';
|
|
service cloud.firestore {
|
|
match /databases/{database}/documents {
|
|
// match /questions/{document=**} {
|
|
// allow read: if request.auth != null
|
|
// }
|
|
|
|
// match /answers/{userId}/profiles/default {
|
|
// allow read, write: if request.auth != null && request.auth.uid == userId
|
|
// }
|
|
|
|
match /credits/{userId}/{document=**} {
|
|
allow read: if request.auth != null && request.auth.uid == userId
|
|
}
|
|
|
|
match /users/{userId}/prompts/{document=**} {
|
|
allow read: if request.auth != null && request.auth.uid == userId
|
|
}
|
|
|
|
// match /users/{userId}/profiles/{document=**} {
|
|
// allow read: if request.auth != null && request.auth.uid == userId
|
|
// }
|
|
|
|
match /users/{userId}/creditHistory/{document=**} {
|
|
allow read: if request.auth != null && request.auth.uid == userId
|
|
}
|
|
|
|
match /{document=**} {
|
|
allow read, write: if false;
|
|
}
|
|
}
|
|
}
|