Skip to content
Snippets Groups Projects
Commit ab7cff6d authored by Morris Jobke's avatar Morris Jobke
Browse files

Revert "Merge pull request #8998 from macjohnny/master"

This reverts commit 482eded8, reversing
changes made to 354cace1.
parent 8e463926
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
......@@ -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
......
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