scheckbuch can't see logbuch

This commit is contained in:
2023-10-24 10:16:26 +02:00
parent c27b83e9fd
commit 1f35be88ad
3 changed files with 38 additions and 2 deletions

View File

@ -23,7 +23,7 @@ use crate::model::{
LogbookUpdateError,
},
logtype::LogType,
user::{User, UserWithWaterStatus},
user::{NonGuestUser, User, UserWithWaterStatus},
};
pub struct KioskCookie(String);
@ -80,7 +80,7 @@ async fn index(db: &State<SqlitePool>, flash: Option<FlashMessage<'_>>, user: Us
}
#[get("/show", rank = 2)]
async fn show(db: &State<SqlitePool>, user: User) -> Template {
async fn show(db: &State<SqlitePool>, user: NonGuestUser) -> Template {
let logs = Logbook::completed(db).await;
Template::render("log.completed", context!(logs, loggedin_user: &user))