forked from Ruderverein-Donau-Linz/rowt
allow to change from schnupperant to scheckbuch
This commit is contained in:
@ -124,7 +124,7 @@ impl User {
|
||||
if self.has_role(db, "schnupperant").await {
|
||||
self.send_welcome_mail_schnupper(db, mail, smtp_pw).await?;
|
||||
} else if let Some(scheckbuch) = ScheckbuchUser::new(db, self).await {
|
||||
scheckbuch.notify(db, mail, smtp_pw).await?;
|
||||
scheckbuch.notify(db, smtp_pw).await?;
|
||||
} else {
|
||||
return Err(format!(
|
||||
"Could not send welcome mail, because user {} is not in Donau Linz or scheckbuch or schnupperant group",
|
||||
|
Reference in New Issue
Block a user