Hi,
I am having this issue where I think I am doing things correctly but somehow something is not working.
This is my app structure:
-
Index Page ( this is the landing page and where the user can log in/sign up)
-
User page ( after login the user will land into this page, I am doing this by using workflow “when the user is log in -> navigate to this page”)
One of the User data fields is a “list of Things”
So on the user page, the user will see a list of “things” unfortunately tho when I sign up with different users all these users see what everyone else has added.
From the index page, I am trying to send as data “Current user’s things” but Bubble doesn’t let me do it.
And of course just sending Current users, or Things doesn’t work. How can I fix this?
Thanks in advance.
Welcome
You should set up privacy policies in the Data tab so that the current user only sees his own data.
You also do not need to send the current user thing. Just set the data source to the current user thing.
Hi thank you so much for your advice.
I wasn’t able to do it that way because when I created the condition in the privacy policy the filed would get red with no further explanation. So what I did was in the repeating group feature in the user page make it do a “Search for Current’s user Things”. Is that an acceptable solution from a privacy standpoint?
Hi @pietro.schirano,
This is fine for showing data, you’re correct here.
No. You’ll need to add data privacy conditions. Anyone with browser developer tools knowledge would be able to see your app data if you don’t add any privacy settings.
Let’s say, for example, you have a data type called “cars” and under the User data type, you have Cars (List of cars).
Now, in your repeating group, you can do “Current Users Cars”
For your privacy settings, you’ll want to add a condition to the Cars data type for when current cars creator is current user: let them see the data. Otherwise, the data will be private.
Hopefully that helps a bit! We do have a tutorial on privacy settings if you’re interested.
Tal
nocodify.com
Thank you so much @Nocodify this is really helpful. I’ll do what you suggested.
I am just learning my way through Bubble and it’s such of an amazing product. Excited to share my app once it’s done.