diff --git a/opencti-platform/opencti-front/src/private/components/settings/Policies.tsx b/opencti-platform/opencti-front/src/private/components/settings/Policies.tsx index 7c8716904b2c3..f628b0e2c4ee0 100644 --- a/opencti-platform/opencti-front/src/private/components/settings/Policies.tsx +++ b/opencti-platform/opencti-front/src/private/components/settings/Policies.tsx @@ -193,7 +193,7 @@ const PoliciesComponent: FunctionComponent = ({ handleSubmitField(name, value || null) } diff --git a/opencti-platform/opencti-front/src/utils/hooks/useSensitiveModifications.ts b/opencti-platform/opencti-front/src/utils/hooks/useSensitiveModifications.ts index 8363006ac15d9..25f103f194dac 100644 --- a/opencti-platform/opencti-front/src/utils/hooks/useSensitiveModifications.ts +++ b/opencti-platform/opencti-front/src/utils/hooks/useSensitiveModifications.ts @@ -44,19 +44,12 @@ const useSensitiveModifications = () => { return role.can_manage_sensitive_config ?? true; }; - /** - * Return true when current user has the fake capa can_manage_sensitive_config enabled. - */ - const isPlatformOrgaModificationAllowed = () => { - return me.can_manage_sensitive_config; - }; - return { ffenabled: isFeatureEnable(PROTECT_SENSITIVE_CHANGES_FF), isGroupEditionAllowed, isRoleEditionAllowed, isRoleWithManageSensitiveConfig, - isPlatformOrgaModificationAllowed, + isPlatformOrgaModificationAllowed: me.can_manage_sensitive_config ?? true, }; };