Allow edit username if we can't determine mutability. (#3230)
This commit is contained in:
parent
573fb2ff03
commit
0bca44e733
1 changed files with 5 additions and 1 deletions
|
@ -204,7 +204,11 @@ export const UserForm = ({
|
||||||
id="kc-username"
|
id="kc-username"
|
||||||
aria-label={t("username")}
|
aria-label={t("username")}
|
||||||
name="username"
|
name="username"
|
||||||
isReadOnly={!!user?.id && !realm?.editUsernameAllowed}
|
isReadOnly={
|
||||||
|
!!user?.id &&
|
||||||
|
!realm?.editUsernameAllowed &&
|
||||||
|
realm?.editUsernameAllowed !== undefined
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue