From: moodler Date: Fri, 30 Jan 2004 08:29:35 +0000 (+0000) Subject: Restrict certain users from changing profile X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ab39445640764d921ffb03099010ee155277d936;p=moodle.git Restrict certain users from changing profile --- diff --git a/user/edit.php b/user/edit.php index f0283c33a0..c083f51bbc 100644 --- a/user/edit.php +++ b/user/edit.php @@ -47,6 +47,10 @@ if ($usernew = data_submitted()) { + if (isset($USER->username)) { + check_for_restricted_user($USER->username, "$CFG->wwwroot/course/view.php?id=$course->id"); + } + foreach ($usernew as $key => $data) { $usernew->$key = clean_text($usernew->$key, FORMAT_MOODLE); }