Update manager.php
added description and blank lines in getUserGroupIds
This commit is contained in:
parent
356e4b6665
commit
18c7c94b7a
|
@ -182,7 +182,9 @@ class Manager extends PublicEmitter {
|
||||||
$this->cachedUserGroups[$uid] = $groups;
|
$this->cachedUserGroups[$uid] = $groups;
|
||||||
return $this->cachedUserGroups[$uid];
|
return $this->cachedUserGroups[$uid];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* get a list of group ids for a user
|
||||||
* @param \OC\User\User $user
|
* @param \OC\User\User $user
|
||||||
* @return array with group names
|
* @return array with group names
|
||||||
*/
|
*/
|
||||||
|
@ -193,7 +195,6 @@ class Manager extends PublicEmitter {
|
||||||
$groupIds = array();
|
$groupIds = array();
|
||||||
foreach ($this->backends as $backend) {
|
foreach ($this->backends as $backend) {
|
||||||
$groupIds = array_merge($groupIds, $backend->getUserGroups($user->getUID()));
|
$groupIds = array_merge($groupIds, $backend->getUserGroups($user->getUID()));
|
||||||
|
|
||||||
}
|
}
|
||||||
return $groupIds;
|
return $groupIds;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue