feat: allow org admin to change org user's password without old password (#3841)

This commit is contained in:
DacongDA
2025-05-28 01:23:44 +08:00
committed by GitHub
parent b6b77da7cf
commit 731daf5204

View File

@ -124,7 +124,7 @@ export const PasswordModal = (props) => {
width={600}
>
<Col style={{margin: "0px auto 40px auto", width: 1000, height: 300}}>
{(hasOldPassword && !Setting.isAdminUser(account)) ? (
{(hasOldPassword && !Setting.isLocalAdminUser(account)) ? (
<Row style={{width: "100%", marginBottom: "20px"}}>
<Input.Password addonBefore={i18next.t("user:Old Password")} placeholder={i18next.t("user:input password")} onChange={(e) => setOldPassword(e.target.value)} />
</Row>