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

Update group.php

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