From b5e78faef92445b228e6e70bcb4d322ff619ec8c Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 3 Jan 2022 04:31:31 -0500 Subject: [PATCH] moderator-only --- fakeyou/src/v2/view/tts/tts_model_view/TtsModelViewFc.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = ( <>