Merge pull request #5609 from owncloud/fix_delete_user2
use getHome() to delete users data
This commit is contained in:
commit
2e731e845b
|
@ -200,7 +200,7 @@ class OC_User {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue