From 0bca44e733848bcefe358cc068185a838f28df0e Mon Sep 17 00:00:00 2001 From: Stan Silvert Date: Mon, 5 Sep 2022 17:33:25 -0400 Subject: [PATCH] Allow edit username if we can't determine mutability. (#3230) --- apps/admin-ui/src/user/UserForm.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/admin-ui/src/user/UserForm.tsx b/apps/admin-ui/src/user/UserForm.tsx index f535fc56db..8e63e999ca 100644 --- a/apps/admin-ui/src/user/UserForm.tsx +++ b/apps/admin-ui/src/user/UserForm.tsx @@ -204,7 +204,11 @@ export const UserForm = ({ id="kc-username" aria-label={t("username")} name="username" - isReadOnly={!!user?.id && !realm?.editUsernameAllowed} + isReadOnly={ + !!user?.id && + !realm?.editUsernameAllowed && + realm?.editUsernameAllowed !== undefined + } /> )}