Hiding buttons based on logged in user

I am trying to hide a button based on if the engineer or operator is logged in, I used the expression 'hasRole("Administrator") binded to the visibility pictured below, but it is not visible when logged into either user, I am using the correct user source and spelling is correct. Any ideas would be helpful this has been frustrating

Try isAuthorized instead:

yes that worked, that was a very fast response too, thank you.

1 Like