Remove the keys in preferences when a user is deleted - Thanks rogerc
This commit is contained in:
parent
e0a058c732
commit
b6d66c4727
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue