Commit 12fab407 authored by Steven Wittens's avatar Steven Wittens
Browse files

#102040: Fix permissions for search/user

parent 487f243c
......@@ -174,7 +174,8 @@ function search_menu($may_cache) {
$items[] = array('path' => 'search/'. $name . $keys, 'title' => $title,
'callback' => 'search_view',
'callback arguments' => array($name),
// Only allow access if the search hook returned a valid title.
// The search module only returns a title when the user is allowed to
// access that particular search type.
'access' => user_access('search content') && $title,
'type' => MENU_LOCAL_TASK,
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