FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
121 stars 18 forks source link

Tagged users in Firestore security rules are not working #3904

Open hannahjkn23 opened 2 weeks ago

hannahjkn23 commented 2 weeks ago

Can we access your project?

Current Behavior

Currently if I select the field where my user/my users are tagged in in Flutterflow or try to setup this manually in firestore (resource.data.field) I can just the a loading widgets but have no access to the documents anymore.

Expected Behavior

The expected behaviour would be that the user can exactly see the documents they are tagged in.

Steps to Reproduce

  1. Setup Firebase with Authentication
  2. Sign up a user
  3. Create a new collection with the field owner and another field like name
  4. create page where you can create a document in that collection or create the document manually, important: set the field owner to the users uid
  5. create a page to view the document(s) of that collection
  6. go to the security rules in flutterflow and for read (in the new collection) select tagged user -> owner
  7. deploy and try to read the newly created document(s)

Reproducible from Blank

Bug Report Code (Required)

ITFflvHl3It2ocsG0a6JKO0wvyk7OWEcTOURiO0bFDsdF4iuPOxzacnsZRduTsO/TVVXKEWGrEAFp8Llkt7xDcADFEirfqJ6+ZNUWg7yeEi/aouVBZe0QEBCQZljIFSs356rpRYlNtphSkIFw2WqI96AbB7sNZv7Zwh9f6PHaOI=

Visual documentation

Screenshot 2024-09-25 203824

Environment

- FlutterFlow version: 5.0.0
- Platform: Windows, MacOS
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.