- #48036: Don't show search box in theme if you have no search permission

4.7.x
Steven Wittens 2006-02-05 19:08:11 +00:00
parent d38429248e
commit 15590cdc06
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ function theme_get_settings($key = NULL) {
}
// Only offer search box if search.module is enabled.
if (!module_exist('search')) {
if (!module_exist('search') || !user_access('search content')) {
$settings['toggle_search'] = 0;
}