diff --git a/course/edit.php b/course/edit.php index b1f24060744..327fc8f421d 100644 --- a/course/edit.php +++ b/course/edit.php @@ -37,6 +37,8 @@ if ($form = data_submitted()) { + check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id"); + $form->startdate = make_timestamp($form->startyear, $form->startmonth, $form->startday); validate_form($course, $form, $err);