MDL-31808 Upload assignment: fix user feedback display

This commit is contained in:
Ruslan Kabalin 2012-02-28 11:15:03 +00:00 committed by Sam Hemelryk
parent 861de3cda1
commit e9f2ede177

View file

@ -113,9 +113,6 @@ class assignment_upload extends assignment_base {
$userid = $submission->userid; $userid = $submission->userid;
} }
if (empty($submission->timemarked)) { /// Nothing to show, so print nothing
return;
}
// Check the user can submit // Check the user can submit
$canviewfeedback = ($userid == $USER->id && has_capability('mod/assignment:submit', $this->context, $USER->id, false)); $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 // If not then check if the user still has the view cap and has a previous submission