Current Page User for admin dashboard

I’m really struggling to understand this concept. I have created a dashboard with a repeating group where users can add orders. As admin I want to be able to see all users orders in this group and update data as needed. I set up the page as type user, as explained in the bubble tutorial. I have also used a constrain in the repeating group to only show when created by current page user. How do I log in as an admin and see all users orders in the repeating group but not allow regular users to see other users entries, only their own.

Here’s the app Link it’s the dashboard I am talking about.

https://l.facebook.com/l.php?u=http%3A%2F%2Flaborders.bubbleapps.io%2Fversion-test%2F%3Ffbclid%3DIwAR3pQSkrzBTMUIgf52o4FBsh7EgDhIGyHZbuhERRWoFql7DkFL315eJfnME&h=AT3Y4p0pKI41PAJVrwLtbUuw36C3jUjj6lx5f9m2vfbMgNKKDINBn1VXl8HWdOEQgGeN3FLg5zrgCZ7923zyyckuepGa7nyZKyOE0VPz7WslBAWxubxfGJCxSoTWJ46GOx_AHrAy-_10peM

You can go to the conditional tab of the RG and place a condition to change the RG source if the current user is an admin.

Just add a yes/no field “admin” for data type user. And add a condition to the RG so that the admin can see all user’s data.

Link to my demo and click template for bubble editor.
Feel free to dm me if you got any questions.

Cheers, Ada.

Thanks for the example it makes it realy easy

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.