rules_version = '2';
service firebase.storage {
match /b/{bucket}/o {
match /Resource/{fileName} {
allow read: if true;
allow create, write: if request.auth != null;
}
match /images/GhslEvent/{fileName} {
allow read: if true;
allow create, write: if request.auth != null;
}
match /images/NewsOrUpdate/{fileName} {
allow read: if true;
allow create, write: if request.auth != null;
}
match /images/Resource/{fileName} {
allow read: if true;
allow create, write: if request.auth != null;
}
// Protected only for auth users
// Site visit images
match /images/SiteVisit/{fileName} {
allow read, create, write: if request.auth != null;
}
// Site visit audios
match /audios/SiteVisit/{fileName} {
allow read, create, write: if request.auth != null;
}
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter