Commit 7e4efe58 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Don't show view submission form when looking at other peoples' views


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 3ab35a4b
...@@ -282,10 +282,14 @@ if (isset($objectionform)) { ...@@ -282,10 +282,14 @@ if (isset($objectionform)) {
} }
$smarty->assign('viewbeingwatched', $viewbeingwatched); $smarty->assign('viewbeingwatched', $viewbeingwatched);
if ($tutorgroupdata = group_get_user_course_groups()) { if ($owner && $owner == $USER->get('id')) {
$options = array(); if ($tutorgroupdata = group_get_user_course_groups()) {
if (!$view->get('submittedgroup') && !$view->get('submittedhost')) { if (!$view->get('submittedgroup') && !$view->get('submittedhost')) {
$smarty->assign('view_group_submission_form', view_group_submission_form($view->get('id'), $tutorgroupdata, 'view')); $smarty->assign(
'view_group_submission_form',
view_group_submission_form($view->get('id'), $tutorgroupdata, 'view')
);
}
} }
} }
......
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