clippy :-)
This commit is contained in:
@ -166,7 +166,7 @@ async fn update(
|
||||
if user.id != reservation.user_id_applicant && !user.has_role(db, "admin").await {
|
||||
return Flash::error(
|
||||
Redirect::to("/boatreservation"),
|
||||
format!("Not allowed to update reservation (only admins + creator do so)."),
|
||||
"Not allowed to update reservation (only admins + creator do so).".to_string(),
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user