Anthony Corsi
Posts: 0
Joined: Mon Apr 21, 2014 4:51 pm

All Users See All Entries From A Single User

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/

avf
Posts: 0
Joined: Fri Sep 26, 2014 11:23 am

All Users See All Entries From A Single User

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

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

Anthony Corsi
Posts: 0
Joined: Mon Apr 21, 2014 4:51 pm

All Users See All Entries From A Single User

How would I do that?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

All Users See All Entries From A Single User

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.

Return to “Issues”