summaryrefslogtreecommitdiffstats
path: root/lib/user.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2012-10-16 22:05:06 +0200
committerLukas Reschke <lukas@statuscode.ch>2012-10-16 22:05:06 +0200
commit379b775a56f681b0cb375dd54018c1dd6e7a62fc (patch)
tree45ceb96c9d4a3e994b5bd39e722b7917e72a6b90 /lib/user.php
parent012ea1ed839ec694d61ac44c61709afd00a684ac (diff)
downloadnextcloud-server-379b775a56f681b0cb375dd54018c1dd6e7a62fc.tar.gz
nextcloud-server-379b775a56f681b0cb375dd54018c1dd6e7a62fc.zip
Delete user files in /data/ after deleting a user
Diffstat (limited to 'lib/user.php')
-rw-r--r--lib/user.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/user.php b/lib/user.php
index e577002650c..77bfe0de92a 100644
--- a/lib/user.php
+++ b/lib/user.php
@@ -210,6 +210,10 @@ class OC_User {
}
// Delete the user's keys in preferences
OC_Preferences::deleteUser($uid);
+
+ // Delete user files in /data/
+ OC_Helper::rmdirr(OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ) . '/'.$uid.'/');
+
// Emit and exit
OC_Hook::emit( "OC_User", "post_deleteUser", array( "uid" => $uid ));
return true;