Restrict certain users from changing profile

This commit is contained in:
moodler 2004-01-30 08:29:35 +00:00
parent cb98d3120c
commit ab39445640

View File

@ -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);
}