Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advanced_help
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
advanced_help
Commits
f6e5c25c
Commit
f6e5c25c
authored
16 years ago
by
Earl Miles
Browse files
Options
Downloads
Patches
Plain Diff
#325422
: search.module provided menu entry needed access control.
parent
c7d54492
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
advanced_help.module
+9
-0
9 additions, 0 deletions
advanced_help.module
with
9 additions
and
0 deletions
advanced_help.module
+
9
−
0
View file @
f6e5c25c
...
...
@@ -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().
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment