From: nicolasconnault Date: Thu, 2 Jul 2009 07:49:12 +0000 (+0000) Subject: Removed redundant require_capability and require_login, causing havoc on new module... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=9ee67e60b4949e7a390af4a8cf1aa10745db7fcf;p=moodle.git Removed redundant require_capability and require_login, causing havoc on new module page. --- diff --git a/course/modedit.php b/course/modedit.php index 771c72fab5..f1a2d9b274 100644 --- a/course/modedit.php +++ b/course/modedit.php @@ -242,14 +242,12 @@ $fromform->coursemodule = $cm->id; } - require_login($course); // needed to setup proper $COURSE if (!empty($fromform->coursemodule)) { $context = get_context_instance(CONTEXT_MODULE, $fromform->coursemodule); } else { $context = get_context_instance(CONTEXT_COURSE, $course->id); } - require_capability('moodle/course:manageactivities', $context); $fromform->course = $course->id; $fromform->modulename = clean_param($fromform->modulename, PARAM_SAFEDIR); // For safety