From b65592b0578cfa74efbb5abb0e4771e13c66aaa2 Mon Sep 17 00:00:00 2001 From: Caulic Date: Thu, 7 Nov 2024 11:27:39 +0800 Subject: [PATCH] fix(admin): boolean form items should not be validated as required --- static/app/views/admin/adminUserEdit.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/static/app/views/admin/adminUserEdit.tsx b/static/app/views/admin/adminUserEdit.tsx index d839fd897b22c7..ced8748a0be934 100644 --- a/static/app/views/admin/adminUserEdit.tsx +++ b/static/app/views/admin/adminUserEdit.tsx @@ -43,7 +43,6 @@ const userEditForm: JsonFormObject = { { name: 'isActive', type: 'boolean', - required: true, label: t('Active'), help: t( 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.' @@ -52,14 +51,12 @@ const userEditForm: JsonFormObject = { { name: 'isStaff', type: 'boolean', - required: true, label: t('Admin'), help: t('Designates whether this user can perform administrative functions.'), }, { name: 'isSuperuser', type: 'boolean', - required: true, label: t('Superuser'), help: t( 'Designates whether this user has all permissions without explicitly assigning them.'