diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-02-23 16:03:32 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-02-23 16:03:32 +0100 |
commit | 4290e1990ec7d04a06298df9aad4c4fd8519f9aa (patch) | |
tree | dbb8c02e3f7a3d008b554931d8888f81dcb79b5c /lib/private/group | |
parent | 81760321765272f638bf50487518860374ffb7f0 (diff) | |
parent | 5542fafd3696033ea8bfdcc441c05522cf6a5736 (diff) | |
download | nextcloud-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.php | 11 |
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)); } /** |