Skip to content
Snippets Groups Projects
Commit b6d66c47 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

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

parent e0a058c7
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment