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 /lib/private/group.php | |
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.
Diffstat (limited to 'lib/private/group.php')
-rw-r--r-- | lib/private/group.php | 7 |
1 files changed, 6 insertions, 1 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(); } |