add planned_trip functionality
This commit is contained in:
@@ -38,7 +38,11 @@ struct UserEditForm {
|
||||
}
|
||||
|
||||
#[post("/user", data = "<data>")]
|
||||
async fn update(db: &State<SqlitePool>, data: Form<UserEditForm>) -> Flash<Redirect> {
|
||||
async fn update(
|
||||
db: &State<SqlitePool>,
|
||||
data: Form<UserEditForm>,
|
||||
_admin: AdminUser,
|
||||
) -> Flash<Redirect> {
|
||||
let user = User::find_by_id(db, data.id).await;
|
||||
let user = match user {
|
||||
Ok(user) => user,
|
||||
|
||||
Reference in New Issue
Block a user