Просмотр исходного кода

basic 用户不能使用模版

visuddhinanda 2 лет назад
Родитель
Сommit
11343df4d9
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      dashboard/src/components/discussion/DiscussionListCard.tsx

+ 4 - 1
dashboard/src/components/discussion/DiscussionListCard.tsx

@@ -170,7 +170,10 @@ const DiscussionListCardWidget = ({
           });
 
           let topicTpl: IComment[] = [];
-          if (activeKey !== "close") {
+          if (
+            activeKey !== "close" &&
+            user?.roles?.includes("basic") === false
+          ) {
             //获取channel模版
             let studioName: string | undefined;
             switch (resType) {