Permalink
Browse files

MDL-43797 lib/moodlelib.php: Remove custom homepages on user deletion

Change-Id: Ic4cd220cb7a6694dc56625ded649cf5172e899a7
  • Loading branch information...
DavidCurry committed Jan 22, 2014
1 parent 953239d commit daea5bfeca4d6f3e2b0e30e030fa30b99e961e12
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/moodlelib.php
View
@@ -4073,6 +4073,9 @@ function delete_user(stdClass $user) {
// Remove users private keys.
$DB->delete_records('user_private_key', array('userid' => $user->id));
// Remove users customised pages.
$DB->delete_records('my_pages', array('userid' => $user->id, 'private' => 1));
// force logout - may fail if file based sessions used, sorry
session_kill_user($user->id);

0 comments on commit daea5bf

Please sign in to comment.