diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-29 18:01:37 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-29 18:01:37 +0100 |
commit | db0fa6c5292003e913aac248e2ee60c77301bd26 (patch) | |
tree | 6ee978cb382c42edcc01957a55930b90eb4eb93b | |
parent | 8ab5da08332990bc0d5e99802e3f9eeec9af3a50 (diff) | |
download | nextcloud-server-db0fa6c5292003e913aac248e2ee60c77301bd26.tar.gz nextcloud-server-db0fa6c5292003e913aac248e2ee60c77301bd26.zip |
use getHome() to delete users data
-rw-r--r-- | lib/private/user.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/user.php b/lib/private/user.php index 710f0fd66db..f15fdf1dbbc 100644 --- a/lib/private/user.php +++ b/lib/private/user.php @@ -195,12 +195,12 @@ class OC_User { // We have to delete the user from all groups foreach (OC_Group::getUserGroups($uid) as $i) { OC_Group::removeFromGroup($uid, $i); - } + } // 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 . '/'); + OC_Helper::rmdirr(\OC_User::getHome($uid)); // Remove it from the Cache self::getManager()->delete($uid); |