-
Notifications
You must be signed in to change notification settings - Fork 0
/
firestore.rules
32 lines (32 loc) · 930 Bytes
/
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
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /rooms/{room} {
allow read: if true;
allow create, update, delete: if request.auth != null;
}
match /products/{product} {
allow read: if true;
allow create, update, delete: if request.auth != null;
}
match /opentime/{opentime} {
allow read: if true;
allow create, update, delete: if request.auth != null;
}
match /stripe_customers/{customer} {
allow read, write: if request.auth != null;
}
match /waivers/{waiver} {
allow read, update: if true;
allow create, delete: if request.auth != null;
}
match /bookings/{booking} {
allow read, create: if true;
allow update, delete: if request.auth != null;
}
match /{document=**} {
allow read, write: if
request.time < timestamp.date(2022, 7, 30);
}
}
}