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

Don't show the 'edit my view' button when viewing a view that has been submitted for assessment.

parent 8b400358
......@@ -283,7 +283,7 @@ $smarty->assign('formattedowner', $view->formatted_owner());
$smarty->assign('streditviewbutton', ($new) ? get_string('backtocreatemyview', 'view') : get_string('editmyview', 'view'));
if ($USER->get('id') == $view->get('owner')) {
$smarty->assign('can_edit', true);
$smarty->assign('can_edit', !$view->get('submittedto'));
$smarty->assign('new', $new);
}
$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