-
Notifications
You must be signed in to change notification settings - Fork 0
/
firestore.rules
67 lines (62 loc) · 1.92 KB
/
firestore.rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents{
match /users/{userID}/data/submissionData{
allow read,write: if request.auth != null &&
request.auth.uid == userID;
}
match /users/{userID}/data/submissionForm {
allow write: if request.auth != null &&
request.resource.data.userID == request.auth.uid &&
request.auth.uid == userID;
allow read;
}
match /users/{userID}/data/settings {
allow read, write: if request.auth != null &&
request.auth.uid == userID;
}
match /users/{userID}/data/emailData {
allow read, write: if request.auth != null &&
request.auth.uid == userID;
}
match /users/{userID}/data/submissionData/cancelRequests/{cancelID}{
allow read, update;
allow write: if request.auth != null &&
request.auth.uid == userID;
}
match /users/{userID}/data/submissionData/submittedFileIDs/{fileID}{
allow read;
allow delete: if request.auth != null && request.auth.uid == userID;
}
match /users/{userID}/data/submissionData/ipData/ipData{
allow read, write: if request.auth != null && request.auth.uid == userID;
}
match /users/{userID}/data/accountInformation{
allow read;
}
match /users/{userID}/data/emailCount{
allow read: if request.auth != null && request.auth.uid == userID;
}
match /users/{uid} {
allow read: if request.auth.uid == uid;
match /checkout_sessions/{id} {
allow read, write: if request.auth.uid == uid;
}
match /subscriptions/{id} {
allow read: if request.auth.uid == uid;
}
match /payments/{id} {
allow read: if request.auth.uid == uid;
}
}
match /products/{id} {
allow read: if true;
match /prices/{id} {
allow read: if true;
}
match /tax_rates/{id} {
allow read: if true;
}
}
}
}