MDL-31808 Upload assignment: fix user feedback display

This commit is contained in:
Ruslan Kabalin
2012-02-28 11:15:03 +00:00
parent c4a12afaf9
commit 2ce6d12f58
@@ -113,9 +113,6 @@ class assignment_upload extends assignment_base {
$userid = $submission->userid;
}
if (empty($submission->timemarked)) { /// Nothing to show, so print nothing
return;
}
// Check the user can submit
$canviewfeedback = ($userid == $USER->id && has_capability('mod/assignment:submit', $this->context, $USER->id, false));
// If not then check if the user still has the view cap and has a previous submission