I could really do with some help. I’m sort of stuck understanding how security rules and data structure works. Any help at all here would be amazing for me to understand and finally “get it”. I’m just not sure what I’m doing wrong!
This is the simplest example I can think of, but I still can’t get it to work... I just want to try and understand how all this fits together.
So I have these collections and they are a flat structure where I have stored the user’s id (generated by Firebase) stored with the collection so I know which collection was made by which user.
But then, in my interface, I only want to show collections made by the logged in user. So I did a security rule like above, but it just doesn’t work.
I’m really stuck… I’ve followed tutorials and guides, but I just can’t get this to work at all! It returns nothing. Returning the collections
rule to simply be ".read": true
returns back all collections as expected.
Thanks for any help on this! Much appreciated!