Commit 15590cdc authored by Steven Wittens's avatar Steven Wittens

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

parent d3842924
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment