diff --git a/src/model/trip.rs b/src/model/trip.rs index b4c5437..0cdfaad 100644 --- a/src/model/trip.rs +++ b/src/model/trip.rs @@ -62,7 +62,7 @@ impl Trip { &user, &format!( "{} hat eine Ausfahrt zur selben Zeit ({} um {}) wie du erstellt", - user.name, trip.day, trip.planned_starting_time + cox.user.name, trip.day, trip.planned_starting_time ), "Neue Ausfahrt zur selben Zeit".into(), None, diff --git a/src/model/user.rs b/src/model/user.rs index b6fef48..ca2cac3 100644 --- a/src/model/user.rs +++ b/src/model/user.rs @@ -733,7 +733,7 @@ impl<'r> FromRequest<'r> for TechUser { } pub struct CoxUser { - user: User, + pub(crate) user: User, } impl Deref for CoxUser {