Commit 710c2110 by Sven Marnach

Merge pull request #8474 from open-craft/smarnach/hide-discussion-tab

Add feature flag to allow hiding the discussion tab for individual courses.
parents 5ceea7a0 0e80f62c
...@@ -222,3 +222,4 @@ Xiaolu Xiong <beardeer@gmail.com> ...@@ -222,3 +222,4 @@ Xiaolu Xiong <beardeer@gmail.com>
Tim Krones <t.krones@gmx.net> Tim Krones <t.krones@gmx.net>
Linda Liu <lliu@edx.org> Linda Liu <lliu@edx.org>
Alessandro Verdura <finalmente2@tin.it> Alessandro Verdura <finalmente2@tin.it>
Sven Marnach <sven@marnach.net>
...@@ -175,6 +175,9 @@ FEATURES = { ...@@ -175,6 +175,9 @@ FEATURES = {
# Enable credit eligibility feature # Enable credit eligibility feature
'ENABLE_CREDIT_ELIGIBILITY': False, '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 ENABLE_JASMINE = False
......
...@@ -58,6 +58,7 @@ class DiscussionTab(EnrolledTab): ...@@ -58,6 +58,7 @@ class DiscussionTab(EnrolledTab):
title = _('Discussion') title = _('Discussion')
priority = None priority = None
view_name = 'django_comment_client.forum.views.forum_form_discussion' view_name = 'django_comment_client.forum.views.forum_form_discussion'
is_hideable = settings.FEATURES.get('ALLOW_HIDING_DISCUSSION_TAB', False)
@classmethod @classmethod
def is_enabled(cls, course, user=None): def is_enabled(cls, course, user=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment