Commit b10a6b00 authored by Nigel McNie's avatar Nigel McNie
Browse files

Tell the template if the user viewing the view can also edit it, so a link can...

Tell the template if the user viewing the view can also edit it, so a link can be displayed allowing them to do that.
parent 09c84f0c
......@@ -341,6 +341,10 @@ $smarty->assign('VIEWNAV', $navlist);
if (isset($content)) {
$smarty->assign('VIEWCONTENT', $content);
}
if ($USER->get('id') == $view->get('owner')) {
$smarty->assign('can_edit', true);
$smarty->assign('viewid', $viewid);
}
$smarty->display('view/view.tpl');
?>
Supports Markdown
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