MDL-21655 fix typo
authorDan Marsden <Dan@digitalclay.co.nz>
Thu, 8 Apr 2010 09:40:38 +0000 (09:40 +0000)
committerDan Marsden <Dan@digitalclay.co.nz>
Thu, 8 Apr 2010 09:40:38 +0000 (09:40 +0000)
mod/assignment/type/upload/assignment.class.php

index f06d99d..e3bd75b 100644 (file)
@@ -1072,7 +1072,7 @@ class assignment_upload extends assignment_base {
 
         // get users submission if there is one
         $submission = $this->get_submission();
-        if (has_capability('mod/assignment:submit', get_context_instance(COURSE_MODULE, $this->cm->id))) {
+        if (has_capability('mod/assignment:submit', get_context_instance(CONTEXT_MODULE, $this->cm->id))) {
             $editable = $this->isopen() && (!$submission || $this->assignment->resubmit || !$submission->timemarked);
         } else {
             $editable = false;