From ae850d76ea9bebf77f55ce54fc5015db725dec4f Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 14 May 2015 01:07:16 +0200 Subject: [PATCH] add primary group users to resultset before caching --- apps/user_ldap/group_ldap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/user_ldap/group_ldap.php b/apps/user_ldap/group_ldap.php index 10e8bfd9e61..0d39b74bbe8 100644 --- a/apps/user_ldap/group_ldap.php +++ b/apps/user_ldap/group_ldap.php @@ -514,10 +514,11 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface { } } + $groupUsers = array_unique(array_merge($groupUsers, $primaryUsers)); natsort($groupUsers); $this->access->connection->writeToCache('usersInGroup-'.$gid.'-'.$search, $groupUsers); $groupUsers = array_slice($groupUsers, $offset, $limit); - $groupUsers = array_unique(array_merge($groupUsers, $primaryUsers)); + $this->access->connection->writeToCache($cacheKey, $groupUsers); -- 2.39.5