diff --git a/fakeyou/src/v2/view/tts/tts_model_view/TtsModelViewFc.tsx b/fakeyou/src/v2/view/tts/tts_model_view/TtsModelViewFc.tsx index c4284ae5be..2ffb46fd2c 100644 --- a/fakeyou/src/v2/view/tts/tts_model_view/TtsModelViewFc.tsx +++ b/fakeyou/src/v2/view/tts/tts_model_view/TtsModelViewFc.tsx @@ -285,6 +285,8 @@ function TtsModelViewFc(props: Props) { ); } + const isCategoryModerator = props.sessionWrapper.canEditCategories(); + const showCategorySection = canEditModel || assignedCategories.length !== 0; let modelCategoriesSection = <>; @@ -363,7 +365,7 @@ function TtsModelViewFc(props: Props) { .reduce((acc, cur) => <>{acc} {cur}) } - if (parentCount !== categoryHierarchy.length - 1) { + if (isCategoryModerator && parentCount !== categoryHierarchy.length - 1) { hierarchyWarning = ( <>