Skip to content
Snippets Groups Projects
Commit f2fed6de authored by Lukas Reschke's avatar Lukas Reschke Committed by Arthur Schiwon
Browse files

Rename $accessiblegroups to $accessibleGroups

parent 8141b918
No related branches found
No related tags found
No related merge requests found
......@@ -38,10 +38,10 @@ $groupsInfo = new \OC\Group\MetaData(OC_User::getUser(), true, $groupManager);
$groupsInfo->setSorting($groupsInfo::SORT_USERCOUNT);
list($adminGroup, $groups) = $groupsInfo->get($pattern);
$accessiblegroups = $groupManager->search($pattern);
$accessibleGroups = $groupManager->search($pattern);
if(!$isAdmin) {
$subadminGroups = OC_SubAdmin::getSubAdminsGroups(OC_User::getUser());
$accessiblegroups = array_intersect($groups, $subadminGroups);
$accessibleGroups = array_intersect($groups, $subadminGroups);
}
OC_JSON::success(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment