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
e6b3f8f8
Commit
e6b3f8f8
authored
May 06, 2016
by
Awais Jibran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Studio Edge cannot load the Course Dashboard for CCX courses.
TNL-4484
parent
1feb4fdb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
cms/djangoapps/contentstore/views/course.py
+6
-4
No files found.
cms/djangoapps/contentstore/views/course.py
View file @
e6b3f8f8
...
...
@@ -412,12 +412,16 @@ def _accessible_courses_list_from_groups(request):
"""
List all courses available to the logged in user by reversing access group names
"""
def
filter_ccx
(
course_access
):
""" CCXs cannot be edited in Studio and should not be shown in this dashboard """
return
not
isinstance
(
course_access
.
course_id
,
CCXLocator
)
courses_list
=
{}
in_process_course_actions
=
[]
instructor_courses
=
UserBasedRole
(
request
.
user
,
CourseInstructorRole
.
ROLE
)
.
courses_with_role
()
staff_courses
=
UserBasedRole
(
request
.
user
,
CourseStaffRole
.
ROLE
)
.
courses_with_role
()
all_courses
=
instructor_courses
|
staff_courses
all_courses
=
filter
(
filter_ccx
,
instructor_courses
|
staff_courses
)
for
course_access
in
all_courses
:
course_key
=
course_access
.
course_id
...
...
@@ -440,9 +444,7 @@ def _accessible_courses_list_from_groups(request):
# If a user has access to a course that doesn't exist, don't do anything with that course
pass
# Custom Courses for edX (CCX) is an edX feature for re-using course content.
# CCXs cannot be edited in Studio (aka cms) and should not be shown in this dashboard.
if
course
is
not
None
and
not
isinstance
(
course
,
ErrorDescriptor
)
and
not
isinstance
(
course
.
id
,
CCXLocator
):
if
course
is
not
None
and
not
isinstance
(
course
,
ErrorDescriptor
):
# ignore deleted, errored or ccx courses
courses_list
[
course_key
]
=
course
...
...
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