From 6da0c07a3d4992602a614a32a5cbbcd0e71cbd12 Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Tue, 21 Nov 2023 14:13:11 +0530 Subject: [PATCH] fix: course creation issue --- lms/lms/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lms/lms/utils.py b/lms/lms/utils.py index 3ed651e49..ccf3a6f47 100644 --- a/lms/lms/utils.py +++ b/lms/lms/utils.py @@ -548,6 +548,9 @@ def can_create_courses(course, member=None): if portal_course_creation == "Anyone" and member in instructors: return True + if not course and has_course_instructor_role(member): + return True + return False