H
H
hackearth2018-12-16 20:30:55
firebase
hackearth, 2018-12-16 20:30:55

Firebase Storage Rules. How to give public access to only one folder?

1. Tell me, is there an article or documentation in RUSSIAN on writing access rules for Firebase Storage?
2. By default, in the rules, access is only for registered users:

service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if request.auth != null;
    }
  }
}

Task: I need to make read and write access to one folder (for example, to the companies folder and all the contents in it) to ALL users, and to the rest of the folders only to registered ones.
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question