Disabling Demo users for sandbox version of the app

0
Hi,   I would like to have demo users in the run local version of my application. But on the published version in sandbox mode, I want to restrict access. However if I enable demo users in app security the switch button is available both in the free node version as well as the local version.   Is there a way to not show the switch button on the right side of the screen in the sandbox mode but have it enabled in the local mode? 
asked
1 answers
1

Guess the best option is to turn off demo users before publishing.

 

More complex option is to override the class .mx-demouserswitcher. Which contains the demo user switcher.

Did some research and couldn't find the exact way (yet) didn't have time enough. 

answered