add todos for auth impl

This commit is contained in:
manuel 2022-08-06 22:13:54 +02:00
parent 0f549856af
commit 5e5b3571f9
3 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,7 @@ async fn create_or_edit_get<T: ActixAdminAppDataTrait, E: ActixAdminViewModelTra
ctx.insert("model", &model); ctx.insert("model", &model);
add_auth_context(session, actix_admin, &mut ctx); add_auth_context(session, actix_admin, &mut ctx);
// TODO: show 404 if user is not logged in but auth enabled
let body = TERA let body = TERA
.render("create_or_edit.html", &ctx) .render("create_or_edit.html", &ctx)

View File

@ -16,6 +16,7 @@ pub async fn index<T: ActixAdminAppDataTrait>(session: Session, data: web::Data<
ctx.insert("entity_names", &entity_names); ctx.insert("entity_names", &entity_names);
add_auth_context(session, actix_admin, &mut ctx); add_auth_context(session, actix_admin, &mut ctx);
// TODO: show 404 if user is not logged in but auth enabled
let body = TERA let body = TERA
.render("index.html", &ctx) .render("index.html", &ctx)

View File

@ -56,6 +56,7 @@ pub async fn list<T: ActixAdminAppDataTrait, E: ActixAdminViewModelTrait>(
ctx.insert("num_pages", &num_pages); ctx.insert("num_pages", &num_pages);
ctx.insert("view_model", &view_model); ctx.insert("view_model", &view_model);
ctx.insert("search", &search); ctx.insert("search", &search);
// TODO: show 404 if user is not logged in but auth enabled
add_auth_context(session, actix_admin, &mut ctx); add_auth_context(session, actix_admin, &mut ctx);
let body = TERA let body = TERA