Allow edit username if we can't determine mutability. (#3230)

This commit is contained in:
Stan Silvert 2022-09-05 17:33:25 -04:00 committed by GitHub
parent 573fb2ff03
commit 0bca44e733
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
/>
</FormGroup>
)}