[Pkg-owncloud-commits] [owncloud] 21/44: Also delete legacy storages when deleting a user

David Prévot taffit at moszumanska.debian.org
Fri Mar 7 13:27:24 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 7580518bd8735986fb77a228d0224dd74d8db89a
Author: Robin Appelman <icewind at owncloud.com>
Date:   Thu Feb 27 14:52:36 2014 +0100

    Also delete legacy storages when deleting a user
---
 lib/private/user.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/private/user.php b/lib/private/user.php
index 992e4a2..c652468 100755
--- a/lib/private/user.php
+++ b/lib/private/user.php
@@ -203,10 +203,12 @@ class OC_User {
 				OC_Preferences::deleteUser($uid);
 
 				// Delete user files in /data/
-				OC_Helper::rmdirr(\OC_User::getHome($uid));
+				$home = \OC_User::getHome($uid);
+				OC_Helper::rmdirr($home);
 
 				// Delete the users entry in the storage table
 				\OC\Files\Cache\Storage::remove('home::' . $uid);
+				\OC\Files\Cache\Storage::remove('local::' . $home . '/');
 
 				// Remove it from the Cache
 				self::getManager()->delete($uid);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list