From 8b74f463f454cf84e0f39bf78ff7d0f245014caa Mon Sep 17 00:00:00 2001 From: zomars Date: Thu, 8 Dec 2022 15:00:06 -0700 Subject: [PATCH] Needed for console --- lib/validations/user.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/validations/user.ts b/lib/validations/user.ts index 8e0689ff3d..25810f27c6 100644 --- a/lib/validations/user.ts +++ b/lib/validations/user.ts @@ -80,6 +80,7 @@ export const schemaUserBaseBodyParams = User.pick({ darkBrandColor: true, allowDynamicBooking: true, away: true, + role: true, // @note: disallowing avatar changes via API for now. We can add it later if needed. User should upload image via UI. // avatar: true, }).partial();