From: moodler Date: Wed, 4 Feb 2004 12:45:35 +0000 (+0000) Subject: Restricted users can't update course formats X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3ed0a1c3166e045110e22b52706fdb4671e1b0ef;p=moodle.git Restricted users can't update course formats --- diff --git a/course/edit.php b/course/edit.php index b1f2406074..327fc8f421 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);