aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-02-02 14:56:01 +0100
committerRobin Appelman <icewind@owncloud.com>2015-02-17 15:05:29 +0100
commit409453bc60ac07392baf4c2b6b6ce800ed11c9ee (patch)
treea6fa07e6a814abc2fefb6620c4bcabce2bc13b7d /lib/private
parent5c68c81d004542e6bf4b88d323b0e9814b52fb37 (diff)
downloadnextcloud-server-409453bc60ac07392baf4c2b6b6ce800ed11c9ee.tar.gz
nextcloud-server-409453bc60ac07392baf4c2b6b6ce800ed11c9ee.zip
better user group caching
Diffstat (limited to 'lib/private')
-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 8dcf14fc1d2..765675974b3 100644
--- a/lib/private/group/manager.php
+++ b/lib/private/group/manager.php
@@ -217,16 +217,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));
}
/**