MDL-62772 mod_assign: Show disclosure for all submitters
authorJohn McGettrick <jmcgettrick@turnitin.com>
Mon, 9 Jul 2018 08:26:38 +0000 (09:26 +0100)
committerJohn McGettrick <jmcgettrick@turnitin.com>
Mon, 9 Jul 2018 08:26:38 +0000 (09:26 +0100)
mod/assign/locallib.php

index 75f4ccd..0a13324 100644 (file)
@@ -4532,10 +4532,10 @@ class assign {
                                                       $this->show_intro(),
                                                       $this->get_course_module()->id,
                                                       $title, '', $postfix));
-        if ($userid == $USER->id) {
-            // We only show this if it their submission.
-            $o .= $this->plagiarism_print_disclosure();
-        }
+
+        // Show plagiarism disclosure for any user submitter.
+        $o .= $this->plagiarism_print_disclosure();
+
         $data = new stdClass();
         $data->userid = $userid;
         if (!$mform) {