supply all variables for planned_event roles
This commit is contained in:
parent
99c615c400
commit
9ae5963a0a
@ -26,7 +26,7 @@ async fn index(
|
|||||||
|
|
||||||
let mut context = Context::new();
|
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;
|
let triptypes = TripType::all(db).await;
|
||||||
context.insert("trip_types", &triptypes);
|
context.insert("trip_types", &triptypes);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user