-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstorage.rules
More file actions
executable file
·27 lines (22 loc) · 841 Bytes
/
storage.rules
File metadata and controls
executable file
·27 lines (22 loc) · 841 Bytes
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
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 users to upload files to their own tweet and profile paths
// match /tweet/{roomId}/{userId}/{tweetId} {
// allow write, update, delete, read: if request.auth.uid == userId;
// }
// match /profile/users/{userId} {
// allow write, update, delete, read: if request.auth.uid == userId;
// }
// match /profile/rooms/{roomId} {
// allow write, update, delete, read: if request.auth.uid != null;
// }
// Default deny for all other paths
match /{allPaths=**} {
allow read, write, delete, update: if request.auth.uid != null;
}
}
}