-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstorage.rules
More file actions
34 lines (30 loc) · 1.01 KB
/
storage.rules
File metadata and controls
34 lines (30 loc) · 1.01 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
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 {
// Allow public read access to all files
match /{allPaths=**} {
allow read: if true;
}
// Allow authenticated users to upload/manage files in devfest folders
match /devfest2025/{folder}/{speakerId}/{filename} {
allow read: if true;
allow write: if request.auth != null;
allow delete: if false;
}
// Allow authenticated users to upload/manage files in any devfest path
match /devfest2025/{allPaths=**} {
allow read: if true;
allow write: if request.auth != null;
allow delete: if false;
}
// Legacy support for other devfest paths
match /{year}/{folder}/{speakerId}/{filename} {
allow read: if true;
allow write: if request.auth != null;
allow delete: if false;
}
}
}