Stefan Melmuk
3 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
src/api/core/organizations.rs
|
@ -907,7 +907,7 @@ async fn send_invite(org_id: &str, data: Json<InviteData>, headers: AdminHeaders |
|
|
new_user.save(&mut conn).await?; |
|
|
new_user.save(&mut conn).await?; |
|
|
|
|
|
|
|
|
for group in data.groups.iter() { |
|
|
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?; |
|
|
group_entry.save(&mut conn).await?; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|