diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-01-13 11:02:30 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2007-01-13 11:02:30 +0000 |
commit | 12fab40764b8ae047d4b0d5aa8be8f73ecd12363 (patch) | |
tree | 1d2191b4d63cef7e97e855436af8bd5a0097115b | |
parent | 487f243cbfeabccaba8b308a7f0c2485fdfd0af8 (diff) | |
download | brdo-12fab40764b8ae047d4b0d5aa8be8f73ecd12363.tar.gz brdo-12fab40764b8ae047d4b0d5aa8be8f73ecd12363.tar.bz2 |
#102040: Fix permissions for search/user
-rw-r--r-- | modules/search/search.module | 3 |
1 files changed, 2 insertions, 1 deletions
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, ); |