Skip to content

Commit

Permalink
impersonator connector hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
Thumimku committed Aug 2, 2024
1 parent 6aa0e62 commit 05a1bc6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions features/admin.extensions.v1/configs/server-configuration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ import { updatePasswordPolicyProperties } from "../components/password-policies/

const featureConfig: FeatureConfigInterface = store?.getState()?.config?.ui?.features;

const isImpersonationConnectorEnabled: boolean =
isFeatureEnabled(featureConfig?.loginAndRegistration,"connectors.impersonation");
const isImpersonationConnectorDisabled: boolean =
!isFeatureEnabled(featureConfig?.loginAndRegistration,"connectors.impersonation");

const serverConfigurationConfig: ServerConfigurationConfig = {
autoEnableConnectorToggleProperty: false,
Expand Down Expand Up @@ -389,7 +389,7 @@ const serverConfigurationConfig: ServerConfigurationConfig = {
usePasswordHistory: useGetPasswordHistoryCount
};

if (isImpersonationConnectorEnabled) {
if (isImpersonationConnectorDisabled) {
serverConfigurationConfig.connectorsToHide.push(ServerConfigurationsConstants.IMPERSONATION);
}

Expand Down

0 comments on commit 05a1bc6

Please sign in to comment.