diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-20 20:48:19 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-03-20 20:48:19 +0000 |
commit | dae2bdbb3b46021672bfc109d42b554c21f0d092 (patch) | |
tree | 8f9ed2d5becc458ae5faf4a61520be6e5ecd1fc1 /includes | |
parent | 63b3fea2b38d62da171cca6310adfd518fb2131e (diff) | |
download | brdo-dae2bdbb3b46021672bfc109d42b554c21f0d092.tar.gz brdo-dae2bdbb3b46021672bfc109d42b554c21f0d092.tar.bz2 |
#45988, Nodes with menu items bypass node permissions system
patch by chx
Diffstat (limited to 'includes')
-rw-r--r-- | includes/menu.inc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index 71db7aee0..0a19ad75d 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -1210,6 +1210,16 @@ function _menu_append_contextual_items() { $new_items[$temp_mid] = $item; $temp_mid--; } + else { + $mid = $_menu['path index'][$item['path']]; + if ($_menu['items'][$mid]['type'] & MENU_CREATED_BY_ADMIN) { + $_menu['items'][$mid]['access'] = $item['access']; + $_menu['items'][$mid]['callback'] = $item['callback']; + if (isset($_menu['items'][$mid]['callback arguments'])) { + $_menu['items'][$mid]['callback arguments'] = $item['callback arguments']; + } + } + } } // Establish parent-child relationships. |