浏览代码

助理老师可以进后台

visuddhinanda 1 年之前
父节点
当前提交
969265ed8f
共有 1 个文件被更改,包括 6 次插入1 次删除
  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