diff --git a/course/mod.php b/course/mod.php index 509382bfe82..096af3dd6fa 100644 --- a/course/mod.php +++ b/course/mod.php @@ -254,6 +254,10 @@ error("This course module doesn't exist"); } + if (!isteacheredit($cm->course)) { + error("You can't modify this course!"); + } + $cm->indent += $_GET['indent']; if ($cm->indent < 0) {