diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-07-21 11:30:47 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-07-21 11:30:47 +0200 |
commit | 0dc67cb1c2085de19e9a4f552253aad87b007786 (patch) | |
tree | 282b8da9a6a3cf250d9e48d1e8a131c44909a91c /settings/ajax | |
parent | e6c75aa9741ca1deab7a77f32e087adcd3bf246a (diff) | |
download | nextcloud-server-0dc67cb1c2085de19e9a4f552253aad87b007786.tar.gz nextcloud-server-0dc67cb1c2085de19e9a4f552253aad87b007786.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.php | 4 |
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); |