summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2016-08-11 10:07:19 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-14 19:37:11 +0200
commit35936684132e88ce94e9d0a304ee21c70356cac0 (patch)
tree5cf71acb613e1c1fa5301f3f34e0a596715d0e87
parent5aef60d2cad09d40496d92be862afaf02ba94443 (diff)
downloadnextcloud-server-35936684132e88ce94e9d0a304ee21c70356cac0.tar.gz
nextcloud-server-35936684132e88ce94e9d0a304ee21c70356cac0.zip
Method is deprecated
-rw-r--r--lib/private/User/User.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/User/User.php b/lib/private/User/User.php
index 238e6324bd5..94ac8c13621 100644
--- a/lib/private/User/User.php
+++ b/lib/private/User/User.php
@@ -200,14 +200,14 @@ class User implements IUser {
// FIXME: Feels like an hack - suggestions?
// We have to delete the user from all groups
- foreach (\OC_Group::getUserGroups($this->uid) as $i) {
- \OC_Group::removeFromGroup($this->uid, $i);
+ foreach (\OC::$server->getGroupManager()->getUserGroupIds($this) as $groupId) {
+ \OC_Group::removeFromGroup($this->uid, $groupId);
}
// Delete the user's keys in preferences
\OC::$server->getConfig()->deleteAllUserValues($this->uid);
// Delete user files in /data/
- \OC_Helper::rmdirr(\OC_User::getHome($this->uid));
+ \OC_Helper::rmdirr($this->getHome());
// Delete the users entry in the storage table
Storage::remove('home::' . $this->uid);