Current User issues

I have a field called “user_network” which is a List of Users within my User Data Type where other users get added when they are “followed”.

These users are also added to a Data Type called “Follow Data” under a field called “accounts_being_followed” this is also a List of Users, with the other field called “account_following” which is a Single User.

I created the field “user_network” within my User Data Type because I was struggling to show a list of accounts within a RG that the current user either follows or is followed by…

Now, I have an issue with the “user_network” RG only showing the current user and I have absolutely no idea why…

image

image

image

But when I click “New Chat”, it pops up but the RG only shows the Current User and not the users within the Current Users user_network.

**Note: I am aware of “minus item:” but this has no effect.

What am I doing wrong?

Hey @deanfenton1989 :wave:

Welcome to the Bubble Community. :tada: :confetti_ball:

Most likely it’s a privacy rule thing. You need to see what rules you have set up and try to figure out a way to make it work without exposing all of your data.

Does that help? :blush:

Hello @J805 ,

I have just checked the privacy settings and they seem to be ok, so I can’t see that being the issue;

Any other ideas?

That is actually, not ok. :blush: That means you are exposing everyone’s emails, location, user_name and other personal data to the public. I wouldn’t want that to happen if I were you.

But, that might not be why you having the issue you are having. :thinking: In the database, under the user that you are working with, does it show any users in the user_network field?

The reason those fields are visible is due to the nature of what I am building, users also have the option to be able to keep their location private etc.

And yes, the user_network field has a user within it (not the current user) so when I run as that user, another user should be showing within the RG and not the current user themselves.

1 Like

I understand that, but anyone with a little bit of dev knowledge can just go into your app and grab all of your user data which includes the data of the boxes that you have checked. What I am saying is that you will be easily hacked. If that is the nature of what you are building, then I suggest making some adjustments so you don’t expose all of your user data. There are ways around it to make sure only the ones that should be able to see the data actually sees it. Even if they say they want their location private, it’s not private since you have privacy rules set up that way. It doesn’t matter what conditions you have on your pages. Does that make sense? Hope I am being clear. :blush:

A way to test what people could hack would be to log out of your app, place a RG on a blank page and put a list of ALL users with the text fields in the RG. Make sure the datasource has no constraints. Then see what shows up. If you see data there, that is what is being leaked online to hackers.

To see why you don’t see the other users in your RG, you can use the debugger and inspect the RG element. That normally helps to find out why you can’t see something on the page that should be there. Have you used the debugger before? Let me know. :blush: Hope to help you figure this out.

Oh, now you’ve explained it like that, that makes a lot more sense and helped me realise I need to tidy that aspect up, privacy is a must nowadays!

I will check the debugger, I haven’t tried that yet, I’ll come back to you with some more information ASAP.

Thank you!

1 Like

Sounds good. :blush: Sorry I wasn’t clear before. Hope that helps a bit.

I have figured out the issue.

I had set the text to; Parent group’s User’s user_network:each item’s user_name
Rather than just;
Parent group’s User’s user_name

So at least that issue is fixed.

I will work on the privacy stuff now as using the debugger I could see everything within that RG which is obviously not visible on the page but it is there in the background, so thank you for bringing that up, it’s appreciated!

1 Like

Glad you figured it out and that you are also going to look into the privacy rules too. :blush: