Page 1 of 1

All Users See All Entries From A Single User

Posted: Mon Dec 22, 2014 5:16 pm
by Anthony Corsi

Hello, I've made an app that allows users to log in and write information down and then read it.

The problem I have is that if user 1 writes something in the database, users 1,2,3,4... can see it. I only want the creator to see what they have writen down and only them.

Here is my public url: http://rhs.mobile.app.appery.io/


All Users See All Entries From A Single User

Posted: Mon Dec 22, 2014 5:44 pm
by avf

You need to create a query to filter data as needed. Please read

http://devcenter.appery.io/documentat...


All Users See All Entries From A Single User

Posted: Mon Dec 22, 2014 10:04 pm
by Anthony Corsi

How would I do that?


All Users See All Entries From A Single User

Posted: Tue Dec 23, 2014 5:54 am
by Yurii Orishchuk

Hi Antony,

You can add to needed collection "user" field which is be pointer to the user collection and then filter by this column by passing current user id.

Regards.