Skip to content

Commit

Permalink
fix group issue in send_invite (#5321)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan0xC authored Dec 31, 2024
1 parent 08183fc commit d9e0d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/core/organizations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ async fn send_invite(org_id: &str, data: Json<InviteData>, headers: AdminHeaders
new_user.save(&mut conn).await?;

for group in data.groups.iter() {
let mut group_entry = GroupUser::new(String::from(group), user.uuid.clone());
let mut group_entry = GroupUser::new(String::from(group), new_user.uuid.clone());
group_entry.save(&mut conn).await?;
}

Expand Down

0 comments on commit d9e0d68

Please sign in to comment.