Compare commits

..

No commits in common. "5c31fac2305315fdab5ea536291c2024d6f53078" and "c55f9743aa404e688096787afa7ac152da7dd1bd" have entirely different histories.

2 changed files with 4 additions and 4 deletions

View File

@ -9,8 +9,8 @@ use sqlx::SqlitePool;
use crate::model::log::Log; use crate::model::log::Log;
use crate::model::mail::Mail; use crate::model::mail::Mail;
use crate::model::role::Role; use crate::model::role::Role;
use crate::model::user::AdminUser;
use crate::model::user::UserWithDetails; use crate::model::user::UserWithDetails;
use crate::model::user::{AdminUser, VorstandUser};
use crate::tera::Config; use crate::tera::Config;
#[get("/mail")] #[get("/mail")]
@ -27,7 +27,7 @@ async fn index(
context.insert( context.insert(
"loggedin_user", "loggedin_user",
&UserWithDetails::from_user(admin.0, db).await, &UserWithDetails::from_user(admin.user, db).await,
); );
context.insert("roles", &roles); context.insert("roles", &roles);

View File

@ -2,7 +2,7 @@ use crate::model::{
log::Log, log::Log,
notification::Notification, notification::Notification,
role::Role, role::Role,
user::{User, UserWithDetails, VorstandUser}, user::{AdminUser, User, UserWithDetails, VorstandUser},
}; };
use itertools::Itertools; use itertools::Itertools;
use rocket::{ use rocket::{
@ -27,7 +27,7 @@ async fn index(
} }
context.insert( context.insert(
"loggedin_user", "loggedin_user",
&UserWithDetails::from_user(user.0, db).await, &UserWithDetails::from_user(user.user, db).await,
); );
let users: Vec<User> = User::all(db) let users: Vec<User> = User::all(db)