Remove the keys in preferences when a user is deleted - Thanks rogerc

This commit is contained in:
Michael Gapczynski 2012-01-04 15:19:16 -05:00
parent e0a058c732
commit b6d66c4727
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ class OC_User {
foreach( OC_Group::getUserGroups( $uid ) as $i ){
OC_Group::removeFromGroup( $uid, $i );
}
// Delete the user's keys in preferences
OC_Preferences::deleteUser($uid);
// Emit and exit
OC_Hook::emit( "OC_User", "post_deleteUser", array( "uid" => $uid ));
return true;