mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-12-25 06:35:58 -05:00
fix group issue in send_invite
This commit is contained in:
parent
ed4ad67e73
commit
cd12a61ec9
@ -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?;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user