Commit 292d28c8 authored by drumm's avatar drumm

#42826 by jvandyk, mfb, macgirvin. Only show 'edit primary links' link if the...

#42826 by jvandyk, mfb, macgirvin. Only show 'edit primary links' link if the user has access to it.
parent 269856e5
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment