-
Notifications
You must be signed in to change notification settings - Fork 928
Permission-Denied #4990
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Same regression with 8.6.5, reverting to 8.6.1 fixes it. |
We also hit this and had to downgrade to 8.6.1 which has resolved it. |
Hi @jachzen, thanks for the report. Could this be an issue with AngularFire? I tried using the SDK version 6.8.5, but I wasn't able to replicate the issue. I'm using the security rules below and able to read/write to Firestore database successfully:
Write to Firestore database:
Read from Firestore database:
Would you mind sharing a minimal, but complete sample of a project that I can run locally to replicate the issue? |
Same "firebase": "^8.6.5" getting FirebaseError: Missing or insufficient permissions. rules_version = '2'; Query I am trying with : const query = this.firestore.collection(FirebaseCollection.USERS); |
Per checking, this issue is a duplicate of #4932. |
Remark : I am using angular fire 6.1.5.
Since version 8.6.2 (8.6.1 does not have this issue) after logging in via auth.signInWithEmailAndPassword and getting the user by listening to the authstate change, it is not possible to get data from Firestore database although a valid authorized user is used. (code='permission-denied').
Seems that this rule does not match anymore:
match /users/{userId} {
allow read: if request.auth.uid == userId;
}
Switching back to 8.6.1 fixes the problem.
The text was updated successfully, but these errors were encountered: