Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-38525: Assignment upgrade - Error with comments for unenrolled st…


Students with comments on 'upload' assignments cause errors for the upgrade
tool if they are no longer enrolled. The solution is to allow siteadmin to
see student submissions even if the student is not currently enrolled (you
must be siteadmin to run the upgrade tool).
  • Loading branch information...
commit 557383cd945b2f145ea495bc06ed6847f80536f9 1 parent 3b89216
@damyon damyon authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  mod/assign/locallib.php
3  mod/assign/locallib.php
@@ -2061,6 +2061,9 @@ private function is_graded($userid) {
public function can_view_submission($userid) {
global $USER;
+ if (is_siteadmin()) {
+ return true;
+ }
if (!is_enrolled($this->get_course_context(), $userid)) {
return false;
Please sign in to comment.
Something went wrong with that request. Please try again.