backend: admin flag on get
This commit is contained in:
parent
e26c33533f
commit
1b4711883c
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue