Browse Source

basic 用户不能使用模版

visuddhinanda 2 years ago
parent
commit
11343df4d9
1 changed files with 4 additions and 1 deletions
  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) {