forked from Stakeholder-Network-Map/HHI
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstorage.rules
More file actions
21 lines (20 loc) · 764 Bytes
/
storage.rules
File metadata and controls
21 lines (20 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
rules_version = '2';
// Craft rules based on data in your Firestore database
// allow write: if firestore.get(
// /databases/(default)/documents/users/$(request.auth.uid)).data.isAdmin;
service firebase.storage {
match /b/{bucket}/o {
match /publicState.json {
allow write: if request.auth.token.email in ["admin@gmail.com", "frederic.masse@redcoralmap.org"];
allow read: if true;
}
match /state.json {
allow write: if request.auth.token.email in ["admin@gmail.com", "frederic.masse@redcoralmap.org"];
allow read: if true;
}
match /adminCheckpointState.json {
allow write: if request.auth.token.email in ["admin@gmail.com", "frederic.masse@redcoralmap.org"];
allow read: if request.auth != null;
}
}
}