mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-08 11:01:35 +00:00
moderator-only
This commit is contained in:
1 parent
3b2c1dd917
commit
b5e78faef9
1 file changed
+3
-1
@@ -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} <FontAwesomeIcon icon={faChevronRight}/> {cur}</>)
|
||||
}
|
||||
|
||||
if (parentCount !== categoryHierarchy.length - 1) {
|
||||
if (isCategoryModerator && parentCount !== categoryHierarchy.length - 1) {
|
||||
hierarchyWarning = (
|
||||
<>
|
||||
<span className="tag is-rounded is-warning is-medium is-light">
|
||||
|
||||
Reference in new issue
Block a user