Administrator privileges to get and delete subscribers
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use crate::{
|
||||
authentication::AuthenticatedUser,
|
||||
domain::{PostEntry, SubscriberEntry},
|
||||
routes::{AppError, DashboardStats},
|
||||
};
|
||||
@@ -49,7 +50,7 @@ pub struct LoginTemplate;
|
||||
#[derive(Template)]
|
||||
#[template(path = "dashboard/dashboard.html")]
|
||||
pub struct DashboardTemplate {
|
||||
pub username: String,
|
||||
pub user: AuthenticatedUser,
|
||||
pub idempotency_key_1: String,
|
||||
pub idempotency_key_2: String,
|
||||
pub stats: DashboardStats,
|
||||
|
||||
Reference in New Issue
Block a user