Delete user files in /data/ after deleting a user
This commit is contained in:
parent
012ea1ed83
commit
379b775a56
1 changed files with 4 additions and 0 deletions
|
@ -210,6 +210,10 @@ class OC_User {
|
||||||
}
|
}
|
||||||
// Delete the user's keys in preferences
|
// Delete the user's keys in preferences
|
||||||
OC_Preferences::deleteUser($uid);
|
OC_Preferences::deleteUser($uid);
|
||||||
|
|
||||||
|
// Delete user files in /data/
|
||||||
|
OC_Helper::rmdirr(OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ) . '/'.$uid.'/');
|
||||||
|
|
||||||
// Emit and exit
|
// Emit and exit
|
||||||
OC_Hook::emit( "OC_User", "post_deleteUser", array( "uid" => $uid ));
|
OC_Hook::emit( "OC_User", "post_deleteUser", array( "uid" => $uid ));
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue