Delete user files in /data/ after deleting a user

This commit is contained in:
Lukas Reschke 2012-10-16 22:05:06 +02:00
parent 012ea1ed83
commit 379b775a56

View file

@ -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;