2022-01-05 17:42:43 +00:00
|
|
|
rules_version = '2';
|
|
|
|
|
|
|
|
service cloud.firestore {
|
|
|
|
match /databases/{database}/documents {
|
|
|
|
|
|
|
|
match /users/{userId} {
|
|
|
|
allow read;
|
|
|
|
allow create: if request.auth != null;
|
|
|
|
}
|
|
|
|
|
|
|
|
match /contracts/{contractId} {
|
|
|
|
allow read;
|
|
|
|
}
|
|
|
|
|
|
|
|
match /contracts/bets/{betId} {
|
|
|
|
allow read;
|
|
|
|
}
|
|
|
|
|
2022-01-05 17:47:39 +00:00
|
|
|
match /{somePath=**}/bets/{betId} {
|
|
|
|
allow read;
|
|
|
|
}
|
|
|
|
|
2022-01-05 17:42:43 +00:00
|
|
|
match /contracts/comments/{commentId} {
|
|
|
|
allow read;
|
|
|
|
allow create: if request.auth != null;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|