diff options
Diffstat (limited to 'lib/private/group/manager.php')
-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)); } /** |