Add check for groups feature flag on SAML group mapping

This commit is contained in:
Carlos Monastyrski
2025-09-30 21:03:41 -03:00
parent c33eba1a91
commit 7e85d3c5a1
2 changed files with 17 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ export const OrgSSOSection = (): JSX.Element => {
try {
if (!currentOrg?.id) return;
if (!subscription?.samlSSO) {
if (!subscription?.samlSSO || !subscription?.groups) {
handlePopUpOpen("upgradePlan");
return;
}
@@ -215,7 +215,7 @@ export const OrgSSOSection = (): JSX.Element => {
id="enable-saml-group-sync"
isChecked={data?.enableGroupSync ?? false}
onCheckedChange={(value) => handleSamlGroupManagement(value)}
isDisabled={!isAllowed}
isDisabled={!isAllowed || !subscription?.groups}
/>
)}
</OrgPermissionCan>