- finder[globaldata->gGroupmap->namesOfGroups[i]] = temp;
- finder[globaldata->gGroupmap->namesOfGroups[i]]->setLabel(label);
- finder[globaldata->gGroupmap->namesOfGroups[i]]->setGroup(globaldata->gGroupmap->namesOfGroups[i]);
- if (m->inUsersGroups(globaldata->gGroupmap->namesOfGroups[i], globaldata->Groups)) { //if this group is in user groups
- lookup.push_back(finder[globaldata->gGroupmap->namesOfGroups[i]]);
+ finder[allGroups[i]] = temp;
+ finder[allGroups[i]]->setLabel(label);
+ finder[allGroups[i]]->setGroup(allGroups[i]);
+ if (m->inUsersGroups(allGroups[i], m->getGroups())) { //if this group is in user groups
+ lookup.push_back(finder[allGroups[i]]);