diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-27 07:02:32 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-27 07:02:32 +0000 |
commit | 292d28c831f6f8517fc820f728bd5de3ebc96c51 (patch) | |
tree | 73a0f8e6dc9b5ac4298dd7bded51273938381b5a | |
parent | 269856e5e72af549d4aad0cd86f5ccda47507f8c (diff) | |
download | brdo-292d28c831f6f8517fc820f728bd5de3ebc96c51.tar.gz brdo-292d28c831f6f8517fc820f728bd5de3ebc96c51.tar.bz2 |
#42826 by jvandyk, mfb, macgirvin. Only show 'edit primary links' link if the user has access to it.
-rw-r--r-- | includes/menu.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc index ab35a3432..6d71f84c2 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -870,7 +870,7 @@ function menu_primary_links($start_level = 1, $pid = 0) { } // Special case - provide link to admin/build/menu if primary links is empty. - if (empty($links) && $start_level == 1 && $pid == variable_get('menu_primary_menu', 0)) { + if (empty($links) && $start_level == 1 && $pid == variable_get('menu_primary_menu', 0) && user_access('administer menu')) { $links['1-1'] = array( 'title' => t('edit primary links'), 'href' => 'admin/build/menu' |