Skip to content
Snippets Groups Projects
Commit f6e5c25c authored by Earl Miles's avatar Earl Miles
Browse files

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

parent c7d54492
No related branches found
No related tags found
No related merge requests found
......@@ -74,6 +74,15 @@ function advanced_help_menu() {
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().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment