mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Restrict certain users from changing profile
This commit is contained in:
parent
cb98d3120c
commit
ab39445640
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user