supply all variables for planned_event roles #191

Merged
philipp merged 1 commits from staging into main 2024-01-24 18:18:52 +01:00

View File

@ -26,7 +26,7 @@ async fn index(
let mut context = Context::new();
if user.has_role(db, "cox").await || user.has_role(db, "admin").await {
if user.has_role(db, "cox").await || user.has_role(db, "planned_event").await {
let triptypes = TripType::all(db).await;
context.insert("trip_types", &triptypes);
}