js-table #364

Merged
marie merged 23 commits from js-table into staging 2024-04-14 17:56:45 +02:00
Showing only changes of commit 073b2aca04 - Show all commits

View File

@ -67,6 +67,7 @@ async fn steering(db: &State<SqlitePool>, user: User, flash: Option<FlashMessage
let mut coxes = User::all_with_role(db, &Role::find_by_name(db, "cox").await.unwrap()).await; let mut coxes = User::all_with_role(db, &Role::find_by_name(db, "cox").await.unwrap()).await;
coxes.retain(|user| !bootskundige.contains(&user)); // Remove bootskundige from coxes list coxes.retain(|user| !bootskundige.contains(&user)); // Remove bootskundige from coxes list
coxes.retain(|user| user.name != String::from("Externe Steuerperson"));
context.insert("coxes", &coxes); context.insert("coxes", &coxes);
context.insert("bootskundige", &bootskundige); context.insert("bootskundige", &bootskundige);