add todos for auth impl
This commit is contained in:
parent
0f549856af
commit
5e5b3571f9
@ -49,7 +49,7 @@ async fn create_or_edit_get<T: ActixAdminAppDataTrait, E: ActixAdminViewModelTra
|
||||
ctx.insert("model", &model);
|
||||
|
||||
add_auth_context(session, actix_admin, &mut ctx);
|
||||
|
||||
// TODO: show 404 if user is not logged in but auth enabled
|
||||
|
||||
let body = TERA
|
||||
.render("create_or_edit.html", &ctx)
|
||||
|
@ -16,6 +16,7 @@ pub async fn index<T: ActixAdminAppDataTrait>(session: Session, data: web::Data<
|
||||
ctx.insert("entity_names", &entity_names);
|
||||
|
||||
add_auth_context(session, actix_admin, &mut ctx);
|
||||
// TODO: show 404 if user is not logged in but auth enabled
|
||||
|
||||
let body = TERA
|
||||
.render("index.html", &ctx)
|
||||
|
@ -56,6 +56,7 @@ pub async fn list<T: ActixAdminAppDataTrait, E: ActixAdminViewModelTrait>(
|
||||
ctx.insert("num_pages", &num_pages);
|
||||
ctx.insert("view_model", &view_model);
|
||||
ctx.insert("search", &search);
|
||||
// TODO: show 404 if user is not logged in but auth enabled
|
||||
add_auth_context(session, actix_admin, &mut ctx);
|
||||
|
||||
let body = TERA
|
||||
|
Loading…
Reference in New Issue
Block a user