summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/api
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2015-08-11 15:43:44 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2015-08-26 11:54:24 +0200
commitbe257bc9cc2330d0e67957525cb66646b346a850 (patch)
treee709fc8eaaf9d94b9ed49eb87598ebf5810497d3 /apps/files_sharing/api
parent9b0058d2b0c2137329491adbbf239b72f26f1637 (diff)
downloadnextcloud-server-be257bc9cc2330d0e67957525cb66646b346a850.tar.gz
nextcloud-server-be257bc9cc2330d0e67957525cb66646b346a850.zip
Add tests for "getUsers()"
Diffstat (limited to 'apps/files_sharing/api')
-rw-r--r--apps/files_sharing/api/sharees.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/api/sharees.php b/apps/files_sharing/api/sharees.php
index 5dd0da55de3..6853bd8a269 100644
--- a/apps/files_sharing/api/sharees.php
+++ b/apps/files_sharing/api/sharees.php
@@ -79,7 +79,7 @@ class Sharees {
$users = [];
if ($shareWithGroupOnly) {
// Search in all the groups this user is part of
- $userGroups = $this->groupManager->getUserGroupsIds($this->userSession->getUser());
+ $userGroups = $this->groupManager->getUserGroupIds($this->userSession->getUser());
foreach ($userGroups as $userGroup) {
$users = array_merge($users, $this->groupManager->displayNamesInGroup($userGroup, $search));
}