-
Notifications
You must be signed in to change notification settings - Fork 0
/
firestore.rules
46 lines (41 loc) · 1.09 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
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents/events {
match /{document=**} {
allow read: if true;
allow write: if false;
match /tickets/{ticket} {
allow read: if true;
// allow write: if request.auth != null && request.auth.uid == resource.data.seller_id;
allow write: if true;
}
}
}
match /databases/{database}/documents/stripes {
match /{document=**} {
allow read, write: if false;
}
}
match /databases/{database}/documents/transactions {
match /{document=**} {
allow read, write: if false;
}
}
match /databases/{database}/documents/users {
match /{userID} {
allow read: if request.auth.uid == userID;
allow write: if false;
}
}
match /databases/{database}/documents/aids {
match /{document=**} {
allow read, write: if false;
}
}
// match /databases/{database}/documents/events/{event}/tickets {
// match /{document=**} {
// allow write: if event.expiry > request.time;
// allow read: if true;
// }
// }
}