From 1b4711883cda28bc48cb0299579d3431e5696d6b Mon Sep 17 00:00:00 2001 From: Sphereso Date: Thu, 11 Jul 2024 23:09:33 +0200 Subject: [PATCH] backend: admin flag on get --- crates/backend/src/controller/user.rs | 2 ++ 1 file changed, 2 insertions(+) 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, } } }