add primary group users to resultset before caching

This commit is contained in:
Arthur Schiwon 2015-05-14 01:07:16 +02:00 committed by Morris Jobke
parent 6b218039ba
commit 76dfc87227
1 changed files with 2 additions and 1 deletions

View File

@ -516,10 +516,11 @@ class GROUP_LDAP extends BackendUtility implements \OCP\GroupInterface {
} }
} }
$groupUsers = array_unique(array_merge($groupUsers, $primaryUsers));
natsort($groupUsers); natsort($groupUsers);
$this->access->connection->writeToCache('usersInGroup-'.$gid.'-'.$search, $groupUsers); $this->access->connection->writeToCache('usersInGroup-'.$gid.'-'.$search, $groupUsers);
$groupUsers = array_slice($groupUsers, $offset, $limit); $groupUsers = array_slice($groupUsers, $offset, $limit);
$groupUsers = array_unique(array_merge($groupUsers, $primaryUsers));
$this->access->connection->writeToCache($cacheKey, $groupUsers); $this->access->connection->writeToCache($cacheKey, $groupUsers);