backend: admin flag on get

This commit is contained in:
Sphereso 2024-07-11 23:09:33 +02:00
parent e26c33533f
commit 1b4711883c

View file

@ -19,6 +19,7 @@ pub struct UserWithoutPassword {
id: Uuid,
name: String,
email: String,
admin: bool,
}
#[derive(Deserialize)]
@ -35,6 +36,7 @@ impl From<entity::user::Model> for UserWithoutPassword {
id: value.id,
name: value.name,
email: value.email,
admin: value.admin,
}
}
}