diff --git a/classes/invitation/stepTypes/SendInvitationStep.php b/classes/invitation/stepTypes/SendInvitationStep.php index dcbc50c9e36..3410357e67f 100644 --- a/classes/invitation/stepTypes/SendInvitationStep.php +++ b/classes/invitation/stepTypes/SendInvitationStep.php @@ -177,7 +177,8 @@ private function getAllUserGroups(Context $context): array $allUserGroups[] = [ 'value' => (int) $userGroup->id, 'label' => $userGroup->getLocalizedData('name'), - 'disabled' => false + 'disabled' => false, + 'roleId' => $userGroup->roleId ]; } return $allUserGroups;