Esempio n. 1
0
 def is_enabled(cls, course, user=None):
     if not super().is_enabled(course, user):
         return False
     # Disable the regular discussion tab if LTI-based external Discussion forum is enabled
     if DiscussionLtiCourseTab.is_enabled(course, user):
         return False
     return utils.is_discussion_enabled(course.id)
Esempio n. 2
0
 def is_enabled(cls, course, user=None):
     if not super(DiscussionTab, cls).is_enabled(course, user):
         return False
     return utils.is_discussion_enabled(course.id)