Skip to content

Commit

Permalink
Merge pull request #682 from pateljannat/course-creation-error
Browse files Browse the repository at this point in the history
fix: course creation issue
  • Loading branch information
pateljannat authored Nov 21, 2023
2 parents b4ad10c + 6da0c07 commit be4e3aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lms/lms/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit be4e3aa

Please sign in to comment.