Please, see attached patch. It hides the search box when the current user has no 'search content' permission.

BTW, shouldn't the functions search_box() and theme_search_box() be moved to search.module?

CommentFileSizeAuthor
theme.inc.toogle_search.patch329 bytesmarkus_petrux
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Steven’s picture

Status: Needs review » Fixed

Committed to HEAD, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)