From 9ae5963a0a49286500bbad0ea7673cf6bf484194 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 24 Jan 2024 18:18:26 +0100 Subject: [PATCH] supply all variables for planned_event roles --- src/tera/planned.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tera/planned.rs b/src/tera/planned.rs index e2919af..4268e3a 100644 --- a/src/tera/planned.rs +++ b/src/tera/planned.rs @@ -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); } -- 2.45.2