Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
52f56ddd
Commit
52f56ddd
authored
Jun 11, 2015
by
Sven Marnach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature flag to allow hiding the discussion tab for individual courses.
parent
5ceea7a0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
cms/envs/common.py
+3
-0
lms/djangoapps/django_comment_client/forum/views.py
+1
-0
No files found.
cms/envs/common.py
View file @
52f56ddd
...
@@ -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
...
...
lms/djangoapps/django_comment_client/forum/views.py
View file @
52f56ddd
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment