From 1a5a5b0e04e54962700d009546dd3e668b0f3f36 Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 1 Oct 2006 09:26:50 +0000 Subject: [PATCH] Fixed a typo causing MDL-6758 --- course/editsection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/editsection.php b/course/editsection.php index c963f28b33..06689c8449 100644 --- a/course/editsection.php +++ b/course/editsection.php @@ -16,7 +16,7 @@ error("Could not find the course!"); } - require_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $id)); + require_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $course->id)); /// If data submitted, then process and store. -- 2.39.5