main #412

Merged
philipp merged 8 commits from main into notification-badge 2024-04-19 12:53:28 +02:00
Showing only changes of commit 8aa4f3577a - Show all commits

View File

@ -591,7 +591,7 @@ ORDER BY departure DESC
}
pub async fn delete(&self, db: &SqlitePool, user: &User) -> Result<(), LogbookDeleteError> {
Log::create(db, format!("{user:?} deleted trip: {self:?}")).await;
Log::create(db, format!("{} deleted trip: {self:?}", user.name)).await;
if user.has_role(db, "admin").await
|| user.has_role(db, "Vorstand").await