backend adaptations due to cox change role
This commit is contained in:
@@ -29,7 +29,7 @@ async fn index(
|
||||
|
||||
let mut context = Context::new();
|
||||
|
||||
if user.has_role(db, "cox").await || user.has_role(db, "manage_events").await {
|
||||
if user.allowed_to_steer(db).await || user.has_role(db, "manage_events").await {
|
||||
let triptypes = TripType::all(db).await;
|
||||
context.insert("trip_types", &triptypes);
|
||||
}
|
||||
|
Reference in New Issue
Block a user