AA-6: Fixes up the logic on when to display the dates tab

This commit is contained in:
Jeff LaJoie
2020-02-25 14:42:42 -05:00
parent 7b3baae4d3
commit 9976cd0884

View File

@@ -332,7 +332,7 @@ class DatesTab(CourseTab):
"""Returns true if this tab is enabled."""
# We want to only limit this feature to instructor led courses for now
if ENABLE_DATES_TAB.is_enabled(course.id):
return CourseOverview.get_from_id(course.id) == 'instructor'
return not CourseOverview.get_from_id(course.id).self_paced
return False