mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-28387 logs: Log data when a user is deleted
This commit is contained in:
parent
c4a12afaf9
commit
20a2f7596c
@ -3878,6 +3878,9 @@ function delete_user($user) {
|
||||
$updateuser->timemodified = time();
|
||||
|
||||
$DB->update_record('user', $updateuser);
|
||||
// Add this action to log
|
||||
add_to_log(SITEID, 'user', 'delete', "view.php?id=$user->id", $user->firstname.' '.$user->lastname);
|
||||
|
||||
|
||||
// We will update the user's timemodified, as it will be passed to the user_deleted event, which
|
||||
// should know about this updated property persisted to the user's table.
|
||||
|
Loading…
x
Reference in New Issue
Block a user