Make sure group data is returned.

This commit is contained in:
ringmaster 2014-05-05 15:11:40 -04:00 committed by Arthur Schiwon
parent f9f9550969
commit 1ae8ec698b
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ $isAdmin = OC_User::isAdminUser(OC_User::getUser());
//groups will be filtered out later
$groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), true, $groupManager);
$groupsInfo->setSorting($groupsInfo::SORT_USERCOUNT);
list($adminGroup, $groups) = $groupsInfo->get($pattern);
list($adminGroups, $groups) = $groupsInfo->get($pattern);
$accessibleGroups = $groupManager->search($pattern);
if(!$isAdmin) {