summaryrefslogtreecommitdiffstats
path: root/lib/private/group
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-02-23 16:03:32 +0100
committerVincent Petry <pvince81@owncloud.com>2015-02-23 16:03:32 +0100
commit4290e1990ec7d04a06298df9aad4c4fd8519f9aa (patch)
treedbb8c02e3f7a3d008b554931d8888f81dcb79b5c /lib/private/group
parent81760321765272f638bf50487518860374ffb7f0 (diff)
parent5542fafd3696033ea8bfdcc441c05522cf6a5736 (diff)
downloadnextcloud-server-4290e1990ec7d04a06298df9aad4c4fd8519f9aa.tar.gz
nextcloud-server-4290e1990ec7d04a06298df9aad4c4fd8519f9aa.zip
Merge pull request #13829 from owncloud/appmanager-list
Better caching for enabled apps
Diffstat (limited to 'lib/private/group')
-rw-r--r--lib/private/group/manager.php11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/private/group/manager.php b/lib/private/group/manager.php
index dd5971f94be..29dc1860891 100644
--- a/lib/private/group/manager.php
+++ b/lib/private/group/manager.php
@@ -236,16 +236,7 @@ class Manager extends PublicEmitter implements IGroupManager {
* @return array with group ids
*/
public function getUserGroupIds($user) {
- $groupIds = array();
- $userId = $user->getUID();
- if (isset($this->cachedUserGroups[$userId])) {
- return array_keys($this->cachedUserGroups[$userId]);
- } else {
- foreach ($this->backends as $backend) {
- $groupIds = array_merge($groupIds, $backend->getUserGroups($userId));
- }
- }
- return $groupIds;
+ return array_keys($this->getUserGroups($user));
}
/**