diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-06-12 14:56:46 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-06-12 14:56:46 +0200 |
commit | ab7cff6dfd63213746a29f4c0557e92a84561498 (patch) | |
tree | 0e7a4b1c1c9e0a879c11ed6758fe3a083015cc6b | |
parent | 8e463926a01b63f6e72505a48e131f4589646792 (diff) | |
download | nextcloud-server-ab7cff6dfd63213746a29f4c0557e92a84561498.tar.gz nextcloud-server-ab7cff6dfd63213746a29f4c0557e92a84561498.zip |
Revert "Merge pull request #8998 from macjohnny/master"
This reverts commit 482eded8b31b257dfed7761c7cb43f35ddcd3408, reversing
changes made to 354cace14ae01e7ff34af3c8a4a3335b89596da3.
-rw-r--r-- | lib/private/group.php | 7 | ||||
-rw-r--r-- | lib/private/group/manager.php | 12 |
2 files changed, 6 insertions, 13 deletions
diff --git a/lib/private/group.php b/lib/private/group.php index bd9e3d37d1f..8dc38129205 100644 --- a/lib/private/group.php +++ b/lib/private/group.php @@ -187,7 +187,12 @@ class OC_Group { public static function getUserGroups($uid) { $user = self::$userManager->get($uid); if ($user) { - return self::getManager()->getUserGroupIds($user); + $groups = self::getManager()->getUserGroups($user); + $groupIds = array(); + foreach ($groups as $group) { + $groupIds[] = $group->getGID(); + } + return $groupIds; } else { return array(); } diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php index 3613c7547bd..dae6443e9d4 100644 --- a/lib/private/group/manager.php +++ b/lib/private/group/manager.php @@ -182,18 +182,6 @@ class Manager extends PublicEmitter { $this->cachedUserGroups[$uid] = array_values($groups); return $this->cachedUserGroups[$uid]; } - /** - * @param \OC\User\User $user - * @return array with group names - */ - public function getUserGroupIds($user) { - $groupIds = array(); - foreach ($this->backends as $backend) { - $groupIds = array_merge($groupIds, $backend->getUserGroups($user->getUID())); - - } - return $groupIds; - } /** * get a list of all display names in a group |