Spaces:
Build error
Build error
| 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; | |
| } | |
| } | |
| } | |