forked from firebase/flutterfire
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirestore.rules
More file actions
45 lines (36 loc) · 1.09 KB
/
Copy pathfirestore.rules
File metadata and controls
45 lines (36 loc) · 1.09 KB
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
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
match /flutter-tests/{document=**} {
allow read, write: if true;
}
match /{path=**}/collection-group/{subId} {
allow read, write: if true;
}
match /firestore-bundle-tests/{document=**} {
allow read, write: if true;
}
match /{path=**}/group-test/{documentId} {
allow read, write: if true;
}
match /{path=**}/aggregate-group-count/{documentId} {
allow read, write: if true;
}
match /flutter-tests/{testid}/group-test/{docid} {
allow read, write: if true;
}
match /firestore-example-app/{document=**} {
allow read, write: if true;
}
match /root/{document=**} {
allow read, write: if true;
}
match /flutterfire-2/{document=**} {
// separate rules are not supported so we need to use the same rules for both databases to prove it is querying different databases
allow read, write: if database == "flutterfire-2";
}
}
}