basic firestore rules
This commit is contained in:
parent
e20537bf49
commit
2453fcf1ef
25
firestore.rules
Normal file
25
firestore.rules
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
match /contracts/comments/{commentId} {
|
||||||
|
allow read;
|
||||||
|
allow create: if request.auth != null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user