Quellcode durchsuchen

basic 用户不能使用模版

visuddhinanda vor 2 Jahren
Ursprung
Commit
11343df4d9
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  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[] = [];
           let topicTpl: IComment[] = [];
-          if (activeKey !== "close") {
+          if (
+            activeKey !== "close" &&
+            user?.roles?.includes("basic") === false
+          ) {
             //获取channel模版
             //获取channel模版
             let studioName: string | undefined;
             let studioName: string | undefined;
             switch (resType) {
             switch (resType) {