How to not show the query in a dashboard to others?
For both the cases:
1Source code: the query should show in source code
2And for the other users when opened the search query should not display.
you should hide the "search links"
are you saying not allowing users to see the source code, open the panel(s) up in search or both? if you could be more specific, that could help