Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
140 views

I am facing a persistent [cloud_firestore/permission-denied] error in my Flutter app when trying to write/read from Firestore. This happens on both Android and iOS devices. What I have tried so far: ...
Azad Gülden's user avatar
0 votes
1 answer
142 views

I have been working on this project and would like to add app check and auth. When app check and auth is not on the rules, the document is being saved. But when added docref appcheck is null. I am ...
Twitchables's user avatar
1 vote
2 answers
102 views

I'm using Firebase Authentication and Firebase Cloud Firestore for my Flutter project. But the rules I implemented in the Firestore only apply correctly after restarting the app, if the user just ...
Sören S.'s user avatar
0 votes
1 answer
77 views

I have chat documents like the following: { members: ['abc','def'] // 2 element list of member UIDs // some other chat metadata } In firestore, I have the following rules on my collection: ...
Isaac's user avatar
  • 304
0 votes
1 answer
68 views

So I have a document for an event. Here's the current structure: { "name": "Some Event Name", "users" : { "a": { "name": "Some Name&...
JoeBayLD's user avatar
  • 1,123
0 votes
1 answer
61 views

I’m building a web app where users sign in with a Firebase Authentication custom token. The token has claims like this: { "iss": "------", "sub": "------", ...
Vishwesh Jainkuniya's user avatar
0 votes
0 answers
93 views

I am building a Flutter mobile app using Firebase backend. I have four collections: institutions, resources, resourceTypes, users. I want the institution's collection to be accessible by any user (...
Kafiul Islam's user avatar
1 vote
1 answer
156 views

I have a collection named "dms" that has "firstUserId" and "secondUserId" as fields in its documents. The following rule is giving me permission denied error: match /dms/{...
Jaden Watt's user avatar
0 votes
1 answer
53 views

I'm trying to use the diff() method in my Firestore rules to ensure the user only edits the allowed fields, however when I try to compile my rules and upload them, I receive the following error in my ...
Jasperan's user avatar
  • 5,221
1 vote
1 answer
62 views

I have updated my security rules and they look like this: { "rules": { ".read": false, ".write": false, "development": { "events":...
kabdik's user avatar
  • 37
-2 votes
1 answer
135 views

In the Realtime Database, if we want to block all writes to an entire Realtime Database database based on some boolean contained therein, what is the proper way to do it? Let's say in Realtime ...
Nerdy Bunz's user avatar
  • 7,773
0 votes
1 answer
78 views

Previously, I had the following rule: allow read: if request.auth.token.email in resource.data.shareWith; Now, that the data structure changed and shareWith is no longer an array of email addresses, ...
Simon Ferndriger's user avatar
1 vote
1 answer
118 views

Goal/intention The rule should grant access to a user document (which contains some personal information like email address) and also its subcollections for movie and tv watchlists, in case the user ...
Simon Ferndriger's user avatar
1 vote
1 answer
50 views

I have the following rules in Cloud Firestore: match /users/{userId}/{documents=**} { allow read: if request.auth.token.email in resource.data.shareWith; // allow read: if resource.data.test == ...
Simon Ferndriger's user avatar
0 votes
3 answers
94 views

These are all the rules I'm currently using: rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read: if request.auth != null; ...
Simon Ferndriger's user avatar
1 vote
1 answer
42 views

I have a collection of musics. They can contain a subcollection of notes. I would like to prevent deletion if any notes exists I tried match /databases/{database}/documents { match /musics/{musicId} {...
Foxhunt's user avatar
  • 1,066
-1 votes
1 answer
74 views

I have a simple program to show real-time postview counts. But in Firebase, it says Your security rules are defined as public, so anyone can steal, modify, or delete data in your database Every ...
Mohammad Ibrahim's user avatar
0 votes
1 answer
36 views

I am new to firebase and would like to know if it's possible to write different set of rules for different apps that have access to same firebase database. For example: Users of App A should be able ...
sai manikanta's user avatar
0 votes
2 answers
81 views

I'm writing my security rules for my Firebase chat app, but I'm getting the following error while using firebase emulators: Uncaught Error in snapshot listener: FirebaseError: [code=permission-denied]...
Jasperan's user avatar
  • 5,221
0 votes
1 answer
71 views

I'm writing Firebase Storage security rules to ensure that only the user who created a specific order can access the associated files. However, when I deploy the rules using firebase deploy --only ...
Jasperan's user avatar
  • 5,221
0 votes
1 answer
38 views

I have a Firebase Auth custom claim that look like this: { "orgRoles": { "my-org-1": "member", "my-org-2": "owner", "my-org-3":...
starleaf1's user avatar
  • 2,938
1 vote
1 answer
96 views

FirebaseError: Firebase Storage: User does not have permission to access 'vehicles/LwDaUZiAn8WIfye5Oj6S/backgroundPic'. (storage/unauthorized) I am completly stuck with firebase rules. It's not ...
N4T4N13L's user avatar
-1 votes
1 answer
86 views

I am attempting to make a basic forum/chat site for myself as a fun project. I have been having several issues pertaining to the rules configuration for firebase. Here is some example code that i have ...
jyomama28's user avatar
1 vote
2 answers
58 views

Here's the full console: logindex.js:81 Messages snapshot error: FirebaseError: Missing or insufficient permissions. eval @ index.js:81 eval @ index.esm2017.js:17548 setTimeout pu @ index.esm2017.js:...
Jason Zhang's user avatar
0 votes
1 answer
108 views

As you know, your API keys are exposed on the front end. Let's say I want to prevent someone from maliciously flooding a collection with documents. If I don't use App Check, is there a way to restrict ...
Rodent's user avatar
  • 11
0 votes
1 answer
135 views

I'm using firestore. It requires security rules. Here is the actual query I'm running against the collection group: const db = getFirestore(app); const MainCollection = collectionGroup(db, "list&...
D.Hodges's user avatar
  • 2,129
0 votes
1 answer
79 views

Can someone demonstrate how to use the count() function in a Firestore Security Rules to limit the number of documents created? This is my current code, but it is now working: match /doc/{docId}{ ...
alberto sansegundo's user avatar
1 vote
1 answer
78 views

I’m trying to create a Firebase Storage rule that only allows access to files under /approved/ if the user has a permission: true field in the Realtime Database, located at this path: /Users/{uid}/...
Yanir Aton's user avatar
0 votes
1 answer
64 views

I have collections: users files (though there could be many different collections beyond files). Both have an email field, both have an organization field. I am looking to allow Admin users to read ...
David's user avatar
  • 1
0 votes
2 answers
72 views

I am trying to setup my security rules for my cloud firestore and just can't figure out the problem. This is my code Future<List<Document>> getDocumentsForGroup(String groupId) async { ...
Asura's user avatar
  • 3
0 votes
1 answer
55 views

I'm having issues on some conditions on my firestore rules. On my use case I have 2 types of users with different custom claims: One user has customerId and sites (array) Other user has customerIds ...
AndreCoelhoo's user avatar
0 votes
1 answer
68 views

I have these firebase rules service cloud.firestore { match /databases/{database}/documents { match /organizations/{organizationId} { allow create: if request.auth.token.superUser == true; ...
xerotolerant's user avatar
  • 2,121
0 votes
1 answer
86 views

I'm building an app with FlutterFlow that will be used by various companies. I'm having trouble setting up the security rules for an app that will be used by various companies. My environment is: ...
kenta_non_jp's user avatar
0 votes
1 answer
47 views

I've been working on cleaning up some of my Firestore database rules and have a question regarding the difference between... allow get: if request.auth == null; and allow read: if request.auth != ...
KatM's user avatar
  • 263
2 votes
1 answer
136 views

I hava a firebase realtime database in an app with the following format: { "level_1": { "entry_01_06_2024_09_47_20_xw": { "co2_score": -276, "date&...
VanessaF's user avatar
  • 717
0 votes
1 answer
46 views

I have a domain whitelist system to verify whether a site's domain is included in my whitelist. If a domain is on the list, it means the theme is verified and purchased. Otherwise, the code should not ...
Hasnain Mahmud Hira's user avatar
0 votes
2 answers
109 views

Rephrased entire question on your suggestion. I have this setup in my firestore database: I'd like to query the "incidents" collection and get back all documents that have my ID in the &...
user2826751's user avatar
1 vote
1 answer
49 views

I can't understand why I get permission denied error for below code. stream = FirebaseFirestore.instance .collection('events') .doc(widget.event.id) .collection('...
supercrissy's user avatar
2 votes
1 answer
85 views

I am trying to upload images to firebase firestorage from our Next.js app. We already have our firebase firestorage credentials set up in our environment variables, and I believe we have initiated ...
Petrando Richard's user avatar
1 vote
1 answer
45 views

For background, our database has a letterbox collection with a field called members, an array storing Firestore references to our users collection. In security rules, we need to check whether a user ...
Connor White's user avatar
0 votes
1 answer
56 views

I am trying to upload an image to the Firebase storage and then write it into Firestore database. func storeMarketplaceItem() { guard let userId = Auth.auth().currentUser?.uid else { ...
sats's user avatar
  • 169
0 votes
1 answer
318 views

When writing rules for Firebase Storage, I get a warning that the parameter for firestore.get must always start with /databases/(default)/documents, like this: firestore.get(/databases/(default)/...
Eull's user avatar
  • 3
0 votes
1 answer
60 views

I am trying to limit rules for my database from the iOS SDK. I want users to be able to read any collection. However they should not be able to write to the collections specified below. But the users ...
Ahmed Zaidan's user avatar
1 vote
1 answer
74 views

I wish users to be able to query how many documents match a given where clause, without resorting to Cloud Functions, and without them being allowed to retreive the document content. For example, ...
Bharel's user avatar
  • 27.7k
0 votes
2 answers
88 views

I am very new to coding and I have trouble writing Firebase Realtime Database rules for my project. I am using it for real-time in-app messaging. Before going through the code, let me briefly explain ...
S.S.S's user avatar
  • 1
0 votes
1 answer
92 views

I'm building a webapp where users can create rooms and join rooms of others. My goal is for users to be able to retrieve any room they have the ID of, but only list rooms they are already a member of. ...
Daniel Eisenhardt's user avatar
0 votes
1 answer
106 views

So I am trying to create a chat app, using firebase (unfortunately) Realtime-DB, but I am getting error: Error sending message: PERMISSION_DENIED: Permission denied so this sounded easy at the begging ...
Mahmoud Hlal's user avatar
0 votes
1 answer
42 views

I have a DB like this: I want logged in users to be able to read and write to this collection. I also want users who are not logged in to only read this collection.. here is my code service cloud....
letsCode's user avatar
  • 3,106
0 votes
1 answer
50 views

I try to make manual rules I have two collection one to save data of user like phone , email ...ect name (user_registration) and other collection name SlideShow have also many of field data. So now ...
M Al's user avatar
  • 469
1 vote
1 answer
30 views

I am trying to configure firestore rules so that a user can only access information in a collection in a secondary database, when that collection's path contains an id stored in the (default) database....
lambinator's user avatar
  • 11.1k

1
2 3 4 5
113