fix: allow deletion of external users (#2725)
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user