Add feature flag to allow hiding the discussion tab for individual courses.
This commit is contained in:
@@ -58,6 +58,7 @@ class DiscussionTab(EnrolledTab):
|
||||
title = _('Discussion')
|
||||
priority = None
|
||||
view_name = 'django_comment_client.forum.views.forum_form_discussion'
|
||||
is_hideable = settings.FEATURES.get('ALLOW_HIDING_DISCUSSION_TAB', False)
|
||||
|
||||
@classmethod
|
||||
def is_enabled(cls, course, user=None):
|
||||
|
||||
Reference in New Issue
Block a user