diff --git a/app/Http/Controllers/RestApi/ApiHelper.php b/app/Http/Controllers/RestApi/ApiHelper.php index 93a50b5..a841f16 100644 --- a/app/Http/Controllers/RestApi/ApiHelper.php +++ b/app/Http/Controllers/RestApi/ApiHelper.php @@ -53,7 +53,7 @@ public static function getMemberAsArray(Member $member, array $allowedGroups, $i foreach ($allowedGroups as $group) { $rootGroupIds = $member->getFirstLevelGroupIds($group->getId()); foreach ($rootGroupIds as $id) { - $rootGroups = $groupRepo->get($id)->getName(); + $rootGroups[] = $groupRepo->get($id)->getName(); } }