add primary group users to resultset before caching
This commit is contained in:
parent
6b218039ba
commit
76dfc87227
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue