From 12fab40764b8ae047d4b0d5aa8be8f73ecd12363 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sat, 13 Jan 2007 11:02:30 +0000 Subject: #102040: Fix permissions for search/user --- modules/search/search.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/search/search.module b/modules/search/search.module index 6df0ed436..99c9fe914 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -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, ); -- cgit v1.2.3