MDL-31808 Upload assignment: fix user feedback display

This commit is contained in:
Ruslan Kabalin
2012-03-13 14:10:31 +13:00
committed by Sam Hemelryk
parent 861de3cda1
commit e9f2ede177
@@ -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