Commit daedf6d7 authored by Richard Mansfield's avatar Richard Mansfield

Remove edit access link from microheader

Signed-off-by: default avatarRichard Mansfield <richard.mansfield@catalyst.net.nz>
parent b8fb4cae
......@@ -220,23 +220,6 @@ if ($owner && $viewtype == 'profile') {
if (get_config('viewmicroheaders')) {
$smarty->assign('microheaders', true);
$smarty->assign('microheadertitle', $view->display_title(true, false));
if ($owner) {
$nolinks = array('profile', 'dashboard');
if ($new || in_array($viewtype, $nolinks)) {
$microheaderlinks = array();
}
else {
$microheaderlinks = array(
array(
'name' => get_string('editaccess', 'view'),
'url' => get_config('wwwroot') . 'view/access.php?id=' . $viewid,
'type' => 'edit',
),
);
}
$smarty->assign('microheaderlinks', $microheaderlinks);
}
}
$smarty->assign('viewtype', $viewtype);
......
......@@ -234,11 +234,6 @@ if (get_config('viewmicroheaders')) {
'image' => $THEME->get_url('images/edit.gif'),
'url' => get_config('wwwroot') . 'view/blocks.php?id=' . $viewid,
),
array(
'name' => get_string('editaccess', 'view'),
'image' => $THEME->get_url('images/icon_access.gif'),
'url' => get_config('wwwroot') . 'view/access.php?id=' . $viewid,
),
);
}
$smarty->assign('microheaderlinks', $microheaderlinks);
......
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