-
Notifications
You must be signed in to change notification settings - Fork 0
/
firestore.rules
43 lines (38 loc) · 982 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
33
34
35
36
37
38
39
40
41
42
43
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
// Allow read/write access on all documents to any user signed in to the application
match /cards {
match /{document=**} {
allow create, write: if request.auth.uid != null;
allow read: if true;
}
}
match /masters {
match /{document=**} {
allow create, write: if request.auth.uid != null;
allow read: if true;
}
}
match /decks {
match /{document=**} {
allow create, write, update, delete: if request.auth.uid != null;
allow read: if true;
}
}
match /playermappings {
match /{document=**} {
allow create, write, update, delete: if request.auth.uid != null;
allow read: if true;
}
}
}
}
service firebase.storage {
match /b/{bucket}/o {
match /{allPaths=**} {
allow read: if true;
allow write: if request.auth!=null
}
}
}