forked from Ruderverein-Donau-Linz/rowt
be able to update data individually; Fixes #952
This commit is contained in:
@ -123,7 +123,7 @@ impl User {
|
||||
.await?;
|
||||
} else 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 {
|
||||
} else if let Some(scheckbuch) = ScheckbuchUser::new(db, self).await {
|
||||
scheckbuch.notify(db, mail, smtp_pw).await?;
|
||||
} else {
|
||||
return Err(format!(
|
||||
@ -272,7 +272,7 @@ ASKÖ Ruderverein Donau Linz", self.name),
|
||||
}
|
||||
|
||||
pub async fn allowed_to_update_always_show_trip(&self, db: &SqlitePool) -> bool {
|
||||
AllowedToUpdateTripToAlwaysBeShownUser::new(db, &self)
|
||||
AllowedToUpdateTripToAlwaysBeShownUser::new(db, self)
|
||||
.await
|
||||
.is_some()
|
||||
}
|
||||
|
Reference in New Issue
Block a user