Add feature flag to allow hiding the discussion tab for individual courses.

This commit is contained in:
Sven Marnach
2015-06-11 12:09:46 +02:00
parent 5ceea7a0a9
commit 52f56ddd37
2 changed files with 4 additions and 0 deletions

View File

@@ -175,6 +175,9 @@ FEATURES = {
# Enable credit eligibility feature
'ENABLE_CREDIT_ELIGIBILITY': False,
# Can the visibility of the discussion tab be configured on a per-course basis?
'ALLOW_HIDING_DISCUSSION_TAB': False,
}
ENABLE_JASMINE = False

View File

@@ -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):