How can I allow only certain users to see specific items in a collection
Posted: Sat Jan 17, 2015 6:47 pm
by SimonChi
Thanks Yuri I've now done the following
I've clicked on JS button on where parameter and populated it with the code you gave me above see pictures below
Mapping for before send
Mapping for success event
when testing the app it still diplays the all the items in the meals collection for every logged in user. This means i'm doing something wrong somewhere. I've done the tutorials for using query service i'm finding it difficult to apply the same principles because this query type is a bit different.
Please help
How can I allow only certain users to see specific items in a collection
Posted: Sat Jan 17, 2015 6:52 pm
by SimonChi
I've enabled "sharing with support" for both the app and the database its called WhatsForSupper and the DB is called WhatsForSupperDB
How can I allow only certain users to see specific items in a collection
Posted: Mon Jan 19, 2015 2:58 pm
by Illya Stepanov
Hi Simon,
1) you have made a mistake in your code
_id equals same object where it is
http://gyazo.com/c436daa6794a0a433295...
2) you have a static id for each request, you will always get the same result, regardless to the user.