hide ssh access tab for cidr resources

This commit is contained in:
miloschwartz
2026-02-25 14:49:17 -08:00
parent 959f68b520
commit b017877826

View File

@@ -640,7 +640,7 @@ export function InternalResourceForm({
title: t("editInternalResourceDialogAccessPolicy"), title: t("editInternalResourceDialogAccessPolicy"),
href: "#" href: "#"
}, },
...(disableEnterpriseFeatures ...(disableEnterpriseFeatures || mode === "cidr"
? [] ? []
: [{ title: t("sshAccess"), href: "#" }]) : [{ title: t("sshAccess"), href: "#" }])
]} ]}
@@ -1188,7 +1188,7 @@ export function InternalResourceForm({
</div> </div>
{/* SSH Access tab */} {/* SSH Access tab */}
{!disableEnterpriseFeatures && ( {!disableEnterpriseFeatures && mode !== "cidr" && (
<div className="space-y-4 mt-4"> <div className="space-y-4 mt-4">
<PaidFeaturesAlert tiers={tierMatrix.sshPam} /> <PaidFeaturesAlert tiers={tierMatrix.sshPam} />
<div className="mb-8"> <div className="mb-8">