forked from thesam73/wordle
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstorage.rules
51 lines (35 loc) · 1011 Bytes
/
storage.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
rules_version = '2';
// A read rule can be broken into get and list, while a write rule can be broken into create, update, and delete
// https://firebase.google.com/docs/firestore/security/rules-structure
// new version
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
match /gameResult/{document=**} {
allow write: if true;
}
match /faq/{document=**} {
allow read: if true;
}
match /content/{document=**} {
allow read: if true;
}
match /word/{document=**} {
allow read: if !resource.data.locked;
}
match /stats/{document=**} {
allow read: if true;
}
match /gameStats/{document=**} {
allow get: if true;
}
match /sharedResult/{document=**} {
allow get, create, update: if true;
}
match /allResults/{document=**} {
allow get, create, update: if true;
}
}
}