Browse Source
Make sure an invitation is created when reinviting
pull/343/head
Daniel García
6 years ago
No known key found for this signature in database
GPG Key ID: FC8A7D14C3CD543A
1 changed files with
3 additions and
2 deletions
-
src/api/core/organizations.rs
|
@ -546,7 +546,8 @@ fn reinvite_user(org_id: String, user_org: String, headers: AdminHeaders, conn: |
|
|
None => err!("User not found."), |
|
|
None => err!("User not found."), |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
Invitation::take(&user.email, &conn); |
|
|
let mut invitation = Invitation::new(user.email.clone()); |
|
|
|
|
|
invitation.save(&conn)?; |
|
|
|
|
|
|
|
|
let org_name = match Organization::find_by_uuid(&org_id, &conn) { |
|
|
let org_name = match Organization::find_by_uuid(&org_id, &conn) { |
|
|
Some(org) => org.name, |
|
|
Some(org) => org.name, |
|
|