File tree Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Expand file tree Collapse file tree 3 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "firestore" : {
3
+ "rules" : " firestore.rules" ,
4
+ "indexes" : " firestore.indexes.json"
5
+ },
6
+ "hosting" : {
7
+ "public" : " public" ,
8
+ "ignore" : [
9
+ " firebase.json" ,
10
+ " **/.*" ,
11
+ " **/node_modules/**"
12
+ ],
13
+ "rewrites" : [
14
+ {
15
+ "source" : " **" ,
16
+ "destination" : " /index.html"
17
+ }
18
+ ]
19
+ },
20
+ "storage" : {
21
+ "rules" : " storage.rules"
22
+ }
23
+ }
Original file line number Diff line number Diff line change
1
+ rules_version = ' 2' ;
2
+ service cloud .firestore {
3
+ match / databases/ {database }/ documents {
4
+ // Only allow users in the whitelist
5
+ match / {document =** } {
6
+ allow read , write : if exists (/ databases/ $(database )/ documents/ whitelist/ $(request .auth.token.email ))
7
+ }
8
+ }
Original file line number Diff line number Diff line change
1
+ service firebase.storage {
2
+ match /b/{bucket}/o {
3
+ match /{allPaths=**} {
4
+ allow read, write: if false;
5
+ }
6
+ }
7
+ }
You can’t perform that action at this time.
0 commit comments