Przeglądaj źródła

助理老师可以进后台

visuddhinanda 2 lat temu
rodzic
commit
969265ed8f
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6 1
      dashboard/src/pages/studio/course/list.tsx

+ 6 - 1
dashboard/src/pages/studio/course/list.tsx

@@ -121,7 +121,12 @@ const Widget = () => {
   const canCreate = !(activeKey !== "create" || user?.roles?.includes("basic"));
 
   const buttonEdit = (course: ICourseDataResponse, key: string | number) => {
-    const canManage: TCourseRole[] = ["owner", "teacher", "manager"];
+    const canManage: TCourseRole[] = [
+      "owner",
+      "teacher",
+      "manager",
+      "assistant",
+    ];
     if (course.my_role && canManage.includes(course.my_role)) {
       return (
         <Link