Disabling Demo users for sandbox version of the app

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? 
1 answers

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.