mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add check for groups feature flag on SAML group mapping
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user