mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-31808 Upload assignment: fix user feedback display
This commit is contained in:
parent
861de3cda1
commit
e9f2ede177
1 changed files with 0 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue