Skip to content
Snippets Groups Projects
Commit b1094cfe authored by macjohnny's avatar macjohnny
Browse files

Update group.php

parent 0af8aa68
Branches
No related tags found
No related merge requests found
...@@ -187,12 +187,6 @@ class OC_Group { ...@@ -187,12 +187,6 @@ class OC_Group {
public static function getUserGroups($uid) { public static function getUserGroups($uid) {
$user = self::$userManager->get($uid); $user = self::$userManager->get($uid);
if ($user) { if ($user) {
/*$groups = self::getManager()->getUserGroups($user);
$groupIds = array();
foreach ($groups as $group) {
$groupIds[] = $group->getGID();
}
return $groupIds;*/
return self::getManager()->getUserGroupIds($user); return self::getManager()->getUserGroupIds($user);
} else { } else {
return array(); return array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment