Update masquerade API to show only active partitions

This commit is contained in:
stvn
2020-06-11 15:34:38 -07:00
parent 994b2b002f
commit 2f7372202b

View File

@@ -96,7 +96,7 @@ class MasqueradeView(View):
user_name=None,
)
descriptor = modulestore().get_course(course_key)
partitions = get_all_partitions_for_course(descriptor)
partitions = get_all_partitions_for_course(descriptor, active_only=True)
data = {
'success': True,
'active': {