How to filter repeater by user role?

Hello.

I created a collection with data and connected it to the repeater. I need the repeater to display only the data that is marked by the role / badge or plan of the logged-in user. How to do this?

Thank You

So, i found how to show elements based on user role. It looks like:


(sorry for pic, i can’t add the code :person_shrugging:)

Now i’m trying to filter repeater by user badge.
My user Role and Badge has a same title.


(sorry for pic, i can’t add the code :person_shrugging:)

About dataset:
I created new field of type “References” in Content Manager linked by Member/Badges and connected badges to the necessary items.

Is it correct way to do this?

Hi there! If you’re still trying to find a solution, we were able to come up with a solution to filter by member role in this post .

Best of luck! :v: