User does not have permission firebase

I get the “user does not have permission to access this object” when uploading an image, I followed all the steps mentioned in the community but i don’t find the solution.
my block and rules:

image

Cattura1

where is the problem?

Thanks

Problem is in your firebase storage rules.

Set rules, read and write to true.

Copy following rules and paste it in your project rules:

rules_version = '2';
service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read;
      allow write;
    }
  }
}

It should look like this:

new rules
image

but the problem is not solved

See carefully your rules are not exactly as like I have shown in image.

Do the corrections.

rules_version = '2';
service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read;
      allow write;
    }
  }
}

i copied and pasted your code and, of course, i published it.
i try to download the apk and it work perfectly if i login, the problem is only with companion without login

1 Like