Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-28387 logs: Log data when a user is deleted

  • Loading branch information...
commit eb2cbfc6d8ef5c5da8f8b94551231ce6a5c018e7 1 parent f24a1a7
Ankit Agarwal ankitagarwal authored

Showing 1 changed file with 3 additions and 0 deletions. Show diff stats Hide diff stats

  1. +3 0  lib/moodlelib.php
3  lib/moodlelib.php
@@ -3495,6 +3495,9 @@ function delete_user($user) {
3495 3495 $updateuser->timemodified = time();
3496 3496
3497 3497 $DB->update_record('user', $updateuser);
  3498 + // Add this action to log
  3499 + add_to_log(SITEID, 'user', 'delete', "view.php?id=$user->id", $user->firstname.' '.$user->lastname);
  3500 +
3498 3501
3499 3502 // notify auth plugin - do not block the delete even when plugin fails
3500 3503 $authplugin = get_auth_plugin($user->auth);

0 comments on commit eb2cbfc

Please sign in to comment.
Something went wrong with that request. Please try again.