diff --git a/tutor/src/screens/my-courses/dashboard/create-course.tsx b/tutor/src/screens/my-courses/dashboard/create-course.tsx index 5a862e0dbc..f1942651f8 100644 --- a/tutor/src/screens/my-courses/dashboard/create-course.tsx +++ b/tutor/src/screens/my-courses/dashboard/create-course.tsx @@ -3,6 +3,7 @@ import styled from 'styled-components' import TutorLink from '../../../components/link' import IconAdd from '../../../components/icons/add' import type { Offering } from '../../../models' +import { currentUser } from '../../../models' import TourAnchor from '../../../components/tours/anchor' import { colors } from '../../../theme' @@ -28,7 +29,7 @@ interface CreateCourseProps { } const CreateCourse: React.FC = ({ offering }) => { - if (!offering.is_available) { return null } + if ((!offering.is_available) || (!currentUser.canCreateCourses)) { return null } return (