From 7ec20ec2d69406a18d44d2ceb4fc7d15f1b031a9 Mon Sep 17 00:00:00 2001 From: Dimitri Date: Mon, 9 Dec 2024 16:40:08 +0100 Subject: [PATCH] Hide featurebase from delegation (#3162) --- src/components/MyTeam/CreateEdit/CreateEditDelegatedAccess.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/MyTeam/CreateEdit/CreateEditDelegatedAccess.jsx b/src/components/MyTeam/CreateEdit/CreateEditDelegatedAccess.jsx index 4fd7db015..a48df6b26 100644 --- a/src/components/MyTeam/CreateEdit/CreateEditDelegatedAccess.jsx +++ b/src/components/MyTeam/CreateEdit/CreateEditDelegatedAccess.jsx @@ -8,6 +8,7 @@ import { shouldForwardProps } from '~/components/shared/shouldForwardProps' import { MyTeamMember as DomainMyTeamMember } from '~/domain/my-team' import Feature from './shared/components/Feature' import { useUserScope } from '~/redux/user/hooks' +import { FeatureEnum } from '~/models/feature.enum' const Title = styled( Typography, @@ -46,7 +47,7 @@ const messages = { 'En déléguant vos accès, ce membre de votre équipe agira en votre nom depuis cet espace d’administration.', } -const skippedFeatures = ['mobile_app'] +const skippedFeatures = ['mobile_app', FeatureEnum.FEATUREBASE] const CreateEditDelegatedAccess = ({ delegatedFeatures = [], updateDelegatedFeatures }) => { const [currentScope] = useUserScope()