[Pkg-owncloud-commits] [owncloud] 49/67: Delete user files in /data/ after deleting a user

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:10:42 UTC 2013


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

taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.

commit 5271c1a9ad3b7001e9b8dd3bab36180cf5c63846
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Tue Oct 16 22:05:06 2012 +0200

    Delete user files in /data/ after deleting a user
---
 lib/user.php |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/user.php b/lib/user.php
index b5b7a2c..73b23b1 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;

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