diff options
author | Björn Schießle <bjoern@schiessle.org> | 2013-10-10 01:50:51 -0700 |
---|---|---|
committer | Björn Schießle <bjoern@schiessle.org> | 2013-10-10 01:50:51 -0700 |
commit | 6053007768242b5b02e62556028d7f3025e92935 (patch) | |
tree | e6c496d43054a8dcc2b233ce4e9016615f258ae3 /core | |
parent | 1a899ac4c3370d34d76eac542cd5404ef2d48b8c (diff) | |
parent | 835f36cb09c9eb13e7475ba49c89802e50b8eec9 (diff) | |
download | nextcloud-server-6053007768242b5b02e62556028d7f3025e92935.tar.gz nextcloud-server-6053007768242b5b02e62556028d7f3025e92935.zip |
Merge pull request #5210 from owncloud/sharing_search_users_fix
find users which are in the same group
Diffstat (limited to 'core')
-rw-r--r-- | core/ajax/share.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index 1166ea3198a..dbad8f2e971 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -293,7 +293,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo while ($count < 15 && count($users) == $limit) { $limit = 15 - $count; if ($sharePolicy == 'groups_only') { - $users = OC_Group::DisplayNamesInGroups($groups, $_GET['search'], $limit, $offset); + $users = OC_Group::DisplayNamesInGroups($usergroups, $_GET['search'], $limit, $offset); } else { $users = OC_User::getDisplayNames($_GET['search'], $limit, $offset); } |