forked from FirebaseExtended/firestore-leaderboards-codelab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
firestore.rules
26 lines (25 loc) · 919 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
// service cloud.firestore {
// match /databases/{database}/documents {
// match /restaurants/{restaurant} {
// match /ratings/{rating} {
// allow read, write: if request.auth != null;
// }
//
// allow read: if request.auth != null;
// allow create: if request.auth != null;
// allow update: if request.auth != null
// && request.resource.data.name == resource.data.name
// && request.resource.data.city == resource.data.city
// && request.resource.data.price == resource.data.price
// && request.resource.data.category == resource.data.category;
// }
// }
// }
service cloud.firestore {
match /databases/{database}/documents {
// Match all documents, recursively, with a wildcard and the "=**" recursive modifier
match /{document=**} {
allow read, write;
}
}
}