How can I allow only certain users to see specific items in a collection
Hie. I have a small app (WhatsForSupper) with three users, Peter James and John and a collection with three items Bread, Fish and Rice. The items in the collection will be populated from a csv file. i.e The users cannot add anything to the collection , they can only view the food items that have been chosen for them. Basically when each user logs in he should only see what he will have for supper. E.g Peter must see bread, James must see rice and John must see fish. However when i'm testing the app the wrong food items are appearing .
For example I've tried editing the ACL column for the "Bread" row in the collection so that when Peter logs in he knows he's having bread for supper.
e.g. {"54a3f9b3e4b0bca36d4f394a":{"read":true,"write":false}}
where "54a3f9b3e4b0bca36d4f394a" is Peter's id
However upon testing the app, a list with rice and fish appears, precisely what Peter is not having for supper ! Peter must have bread for supper and when he logs in he must see bread . How can I make sure that this happens.
I patiently await your usual great support !