I have a button that I want to hide or show depending on the users role. I have tried two different ways of doing this.
One I have created a role field in the user thing of the database, I have then put admin in that field and used a condition that says, when current users role is “admin” then the button shows up. This didn’t work. If I change the condition to when current users role is empty, then it works.
The second option I tried is to setup a field called is_admin, which required yes or no / true or false to be selected. If I manual enter yes into that field and then use a condition that says, when is_admin is yes then the button visible. The button doesn’t show up, but if I change the condition to when is_admin is no, even though it says yes in the field, the button will show.
Is this a bug or is there something I am missing?