How i can hide hide navbar-search

I want to hide navbar-search for all user’s roles except system manager

In the role doctype you can set which roles are allowed to use the search bar.

i want JS code