MDL-4908 Forum: Correctly check for appropriate login on maildigest changes
authorAndrew Nicols <andrew@nicols.co.uk>
Wed, 14 Aug 2013 10:08:31 +0000 (11:08 +0100)
committerSam Hemelryk <sam@moodle.com>
Thu, 15 Aug 2013 03:24:15 +0000 (15:24 +1200)
mod/forum/maildigest.php

index e7fbd88..6078398 100644 (file)
@@ -38,7 +38,7 @@ $course  = $DB->get_record('course', array('id' => $forum->course), '*', MUST_EX
 $cm      = get_coursemodule_from_instance('forum', $forum->id, $course->id, false, MUST_EXIST);
 $context = context_module::instance($cm->id);
 
-require_course_login($course);
+require_login($course, false, $cm);
 
 $url = new moodle_url('/mod/forum/maildigest.php', array(
     'id' => $id,