Merge pull request 'allow vorstand to send mail + notifications' (#602) from allow-vorstand-to-send-things into staging
All checks were successful
CI/CD Pipeline / test (push) Successful in 10m12s
CI/CD Pipeline / deploy-staging (push) Successful in 6m2s
CI/CD Pipeline / deploy-main (push) Has been skipped

Reviewed-on: #602
This commit is contained in:
philipp 2024-06-21 11:25:09 +02:00
commit 5c31fac230
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::mail::Mail;
use crate::model::role::Role;
use crate::model::user::AdminUser;
use crate::model::user::UserWithDetails;
use crate::model::user::{AdminUser, VorstandUser};
use crate::tera::Config;
#[get("/mail")]
@ -27,7 +27,7 @@ async fn index(
context.insert(
"loggedin_user",
&UserWithDetails::from_user(admin.user, db).await,
&UserWithDetails::from_user(admin.0, db).await,
);
context.insert("roles", &roles);

View File

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