summaryrefslogtreecommitdiffstats
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 11:30:47 +0200
commit0dc67cb1c2085de19e9a4f552253aad87b007786 (patch)
tree282b8da9a6a3cf250d9e48d1e8a131c44909a91c
parente6c75aa9741ca1deab7a77f32e087adcd3bf246a (diff)
downloadnextcloud-server-0dc67cb1c2085de19e9a4f552253aad87b007786.tar.gz
nextcloud-server-0dc67cb1c2085de19e9a4f552253aad87b007786.zip
Do not force isAdmin as true and so the list is filtered correctly
-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);