diff --git a/crates/backend/src/controller/user.rs b/crates/backend/src/controller/user.rs index d28c557..947272d 100644 --- a/crates/backend/src/controller/user.rs +++ b/crates/backend/src/controller/user.rs @@ -19,6 +19,7 @@ pub struct UserWithoutPassword { id: Uuid, name: String, email: String, + admin: bool, } #[derive(Deserialize)] @@ -35,6 +36,7 @@ impl From for UserWithoutPassword { id: value.id, name: value.name, email: value.email, + admin: value.admin, } } }