Looking for a peace of code

Hi, I am looking to do a simple thing but can’t figure it out…

The goal is to show/hide a button based on the current user login. But I need as an admin to be able to tell what user can see that button and what user cannot see that button…

How can I do this

Hi there :wave:t2: This would be easy to do by assigning different member roles .

You could then check out the articles below for what code to use to show/hide based on which role the user has.

https://www.wix.com/velo/forum/coding-with-velo/menu-items-based-on-user-role

https://www.wix.com/velo/forum/coding-with-velo/show-a-button-based-on-member-role

https://www.wix.com/velo/forum/coding-with-velo/user-roles

Good luck!