I am having problems securing access to a userimages collection which is a sub collection of users.
If I set the sub collection to authenticated users it works fine, the moment I select tagged users I get this error in the app
Run mode-only notification:
Firestore Security Rules Error on userImages: Missing or insufficient permissions
Here is my existing ruleset. Tagged users is set to a create_by field in the userImages collection. I have manually checked the collection on firebase and can see a document with the created_by set to a uid I would expect.
These match on both firestore and within flutterflow so are in sync.
What I am trying to achieve is to allow users to create their own documents, and only they should be able to see (read) and edit those documents, not other users.
I have followed through a few guides and as far as I can see the above should work, so not sure what I am missing?
Thanks