storage.rules 270 B

123456789101112
  1. rules_version = '2';
  2. service firebase.storage {
  3. match /b/{bucket}/o {
  4. match /{allPaths=**} {
  5. allow read, write: if false;
  6. }
  7. match /users/{userId}/{allPaths=**} {
  8. allow read: if true;
  9. allow write: if request.auth.uid == userId;
  10. }
  11. }
  12. }