Hi,
I have to hide/show some in-panel widget icon itself based on the user logged in. In below screen-shot, i have to hide the toggle-layer widget icon for Normal user while loading the application. This widget will only be available for administrator user:

I checked this link Hide widget icon but its not working. I am using WAB 2.5
Regards,
Naveen