summaryrefslogtreecommitdiffstats
path: root/settings/ajax
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-07-21 11:30:47 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-07-21 14:32:20 +0200
commita77044da9e5eaee46489f4b9f23adc8effc59234 (patch)
tree5378ea197f2c01883e6f0f0de7cd9ab486713712 /settings/ajax
parent9c6e87849bbc5166efdbbdfc3f111b8f5ab98627 (diff)
downloadnextcloud-server-a77044da9e5eaee46489f4b9f23adc8effc59234.tar.gz
nextcloud-server-a77044da9e5eaee46489f4b9f23adc8effc59234.zip
Do not force isAdmin as true and so the list is filtered correctly
Diffstat (limited to 'settings/ajax')
-rw-r--r--settings/ajax/grouplist.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/settings/ajax/grouplist.php b/settings/ajax/grouplist.php
index 52df98c4e5e..93bb510773d 100644
--- a/settings/ajax/grouplist.php
+++ b/settings/ajax/grouplist.php
@@ -38,9 +38,7 @@ $adminGroups = array();
$groupManager = \OC_Group::getManager();
$isAdmin = OC_User::isAdminUser(OC_User::getUser());
-//we pass isAdmin as true, because OC_SubAdmin has no search feature,
-//groups will be filtered out later
-$groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), true, $groupManager);
+$groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), $isAdmin, $groupManager);
$groupsInfo->setSorting($groupsInfo::SORT_USERCOUNT);
list($adminGroups, $groups) = $groupsInfo->get($groupPattern, $pattern);