diff --git a/src/tera/log.rs b/src/tera/log.rs index ae82c3b..bf83e4e 100644 --- a/src/tera/log.rs +++ b/src/tera/log.rs @@ -27,7 +27,7 @@ use crate::{ }, logtype::LogType, trip::Trip, - user::{AdminUser, DonauLinzUser, User, UserWithDetails, VorstandUser}, + user::{DonauLinzUser, User, UserWithDetails, VorstandUser}, }, tera::Config, }; @@ -118,7 +118,7 @@ async fn show(db: &State, user: DonauLinzUser) -> Template { } #[get("/show?", rank = 2)] -async fn show_for_year(db: &State, user: AdminUser, year: i32) -> Template { +async fn show_for_year(db: &State, user: VorstandUser, year: i32) -> Template { let logs = Logbook::completed_in_year(db, year).await; Template::render( diff --git a/templates/log.completed.html.tera b/templates/log.completed.html.tera index 6f16fa6..622a34b 100644 --- a/templates/log.completed.html.tera +++ b/templates/log.completed.html.tera @@ -5,7 +5,7 @@

Logbuch - {% if loggedin_user and "admin" in loggedin_user.roles %} + {% if loggedin_user and "Vorstand" in loggedin_user.roles %}