forked from firebase/flutterfire
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstorage.rules
More file actions
38 lines (33 loc) · 1013 Bytes
/
Copy pathstorage.rules
File metadata and controls
38 lines (33 loc) · 1013 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
28
29
30
31
32
33
34
35
36
37
38
rules_version = '2';
service firebase.storage {
// Default bucket
match /b/flutterfire-e2e-tests.appspot.com/o {
match /{document=**} {
allow read, write: if false;
}
match /writeOnly.txt {
allow read: if false;
allow write: if true;
}
match /flutter-tests/{document=**} {
allow read, write: if true;
}
}
// Second bucket
match /b/flutterfire-e2e-tests-two/o {
match /{document=**} {
allow read, write: if false;
}
match /allowable-lists-2nd-bucket/{document=**} {
allow read, write: if true;
}
match /writeOnly.txt {
allow read: if false;
allow write: if true;
}
match /flutter-tests/{fileName} {
// Blocks read and write access if the file name exactly matches 'second-bucket-not-allowed', regardless of the file extension
allow read, write: if !(fileName == 'second-bucket-not-allowed.jpeg' || fileName == 'second-bucket-not-allowed.txt');
}
}
}