Commit f6e5c25c authored by merlinofchaos's avatar merlinofchaos
Browse files

#325422: search.module provided menu entry needed access control.

parent c7d54492
...@@ -74,6 +74,15 @@ function advanced_help_menu() { ...@@ -74,6 +74,15 @@ function advanced_help_menu() {
return $items; return $items;
} }
/**
* Inplementation of hook_menu_alter().
**/
function advanced_help_menu_alter(&$callbacks) {
// We need to fix the menu item provided by search module to restrict access.
$callbacks['search/advanced_help/%menu_tail']['access callback'] = 'user_access';
$callbacks['search/advanced_help/%menu_tail']['access arguments'] = array('view advanced help index');
}
/** /**
* Implementation of hook_theme(). * Implementation of hook_theme().
*/ */
......
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