Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
302
Merge Requests
302
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
768faa98
Commit
768faa98
authored
Apr 24, 2007
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#138703
by chx: Menu inheritance is wrong.
parent
2a2b7672
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
includes/menu.inc
includes/menu.inc
+4
-3
No files found.
includes/menu.inc
View file @
768faa98
...
...
@@ -758,9 +758,10 @@ function menu_rebuild() {
// Because access is checked for each visible parent as well, we only
// inherit if arguments were given without a callback. Otherwise the
// inherited check would be identical to that of the parent.
if
(
!
isset
(
$item
[
'access callback'
])
&&
isset
(
$parent
[
'access callback'
])
&&
!
isset
(
$parent
[
'access inherited'
]))
{
if
(
isset
(
$item
[
'access arguments'
])
||
!
$parent
[
'_visible'
])
{
// inherited check would be identical to that of the parent. We do
// not inherit from visible parents which are themselves inherited.
if
(
!
isset
(
$item
[
'access callback'
])
&&
isset
(
$parent
[
'access callback'
])
&&
!
(
isset
(
$parent
[
'access inherited'
])
&&
$parent
[
'_visible'
]))
{
if
(
isset
(
$item
[
'access arguments'
]))
{
$item
[
'access callback'
]
=
$parent
[
'access callback'
];
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment