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;
    }
 
  }
}