summaryrefslogtreecommitdiffstats
path: root/lib/private/group/group.php
diff options
context:
space:
mode:
authorblizzz <blizzz@owncloud.com>2014-04-23 16:30:26 +0200
committerblizzz <blizzz@owncloud.com>2014-04-23 16:30:26 +0200
commit14c95086a98e2a2543b7d1eefe30508a3d3a4126 (patch)
treed228dd638b333ee0d24fa05c04b0f392b4e8fe3d /lib/private/group/group.php
parent4696b06060b8dd43e1465d675aaa71b80afcc5f9 (diff)
parent0a9487ec801c640bfdb59c037b4ca3f4ea95fe0a (diff)
downloadnextcloud-server-14c95086a98e2a2543b7d1eefe30508a3d3a4126.tar.gz
nextcloud-server-14c95086a98e2a2543b7d1eefe30508a3d3a4126.zip
Merge pull request #7745 from owncloud/fix_6946_stable6
Group Database backend must not gather user details itself but ask user backends, fixes #6946 in stable6
Diffstat (limited to 'lib/private/group/group.php')
-rw-r--r--lib/private/group/group.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/group/group.php b/lib/private/group/group.php
index d5a17f6d215..ae8eeacb23a 100644
--- a/lib/private/group/group.php
+++ b/lib/private/group/group.php
@@ -180,11 +180,7 @@ class Group {
*/
public function searchDisplayName($search, $limit = null, $offset = null) {
foreach ($this->backends as $backend) {
- if ($backend->implementsActions(OC_GROUP_BACKEND_GET_DISPLAYNAME)) {
- $userIds = array_keys($backend->displayNamesInGroup($this->gid, $search, $limit, $offset));
- } else {
- $userIds = $backend->usersInGroup($this->gid, $search, $limit, $offset);
- }
+ $userIds = $backend->usersInGroup($this->gid, $search, $limit, $offset);
$users = $this->getVerifiedUsers($userIds);
if (!is_null($limit) and $limit <= 0) {
return array_values($users);