permission-denied
מה אומרת שגיאת Firebase (שירותי Google) הזאת
איך זה מופיע
FirebaseError: [code=permission-denied]: Missing or insufficient permissions.
מה זה אומר
The caller does not have permission to run this read or write. For apps that use the client SDK, that decision comes from the project's Firestore Security Rules.
הסיבה הנפוצה באפליקציה שנבנתה עם AI
The rules let users read only their own documents, but the AI-generated query asks for the whole collection. Security rules are not filters, so the whole query is refused even though some documents would be allowed.
בדקו את זה קודם
Open the Rules tab of Firestore in the Firebase console and compare the rule for this collection with the exact query your code runs, including its where filters.