fix: allow deletion of external users (#2725)

This commit is contained in:
Meier Lukas
2025-03-28 17:58:54 +01:00
committed by GitHub
parent 93c64baec2
commit 40e00987cb

View File

@@ -118,15 +118,13 @@ export default async function EditUserPage(props: Props) {
<PingIconsEnabled user={user} /> <PingIconsEnabled user={user} />
</Stack> </Stack>
{isCredentialsUser && ( <DangerZoneRoot>
<DangerZoneRoot> <DangerZoneItem
<DangerZoneItem label={t("user.action.delete.label")}
label={t("user.action.delete.label")} description={t("user.action.delete.description")}
description={t("user.action.delete.description")} action={<DeleteUserButton user={user} />}
action={<DeleteUserButton user={user} />} />
/> </DangerZoneRoot>
</DangerZoneRoot>
)}
</Stack> </Stack>
); );
} }