Commit 8cb27a08 by Awais Jibran

Fix accidentally exposed Supply Chain course run

ECOM-6452
parent 2e00fd58
...@@ -51,6 +51,7 @@ class TestGetPrograms(mixins.CatalogIntegrationMixin, TestCase): ...@@ -51,6 +51,7 @@ class TestGetPrograms(mixins.CatalogIntegrationMixin, TestCase):
querystring = { querystring = {
'marketable': 1, 'marketable': 1,
'exclude_utm': 1, 'exclude_utm': 1,
'published_course_runs_only': 1,
} }
if type: if type:
querystring['type'] = type querystring['type'] = type
......
...@@ -43,6 +43,7 @@ def get_programs(user, uuid=None, type=None): # pylint: disable=redefined-built ...@@ -43,6 +43,7 @@ def get_programs(user, uuid=None, type=None): # pylint: disable=redefined-built
querystring = { querystring = {
'marketable': 1, 'marketable': 1,
'exclude_utm': 1, 'exclude_utm': 1,
'published_course_runs_only': 1,
} }
if type: if type:
querystring['type'] = type querystring['type'] = type
......
...@@ -145,9 +145,6 @@ def attach_program_detail_url(programs): ...@@ -145,9 +145,6 @@ def attach_program_detail_url(programs):
Returns: Returns:
list, containing extended program dicts list, containing extended program dicts
""" """
programs_config = ProgramsApiConfig.current()
marketing_url = get_program_marketing_url(programs_config)
for program in programs: for program in programs:
base = reverse('program_details_view', kwargs={'program_id': program['id']}).rstrip('/') base = reverse('program_details_view', kwargs={'program_id': program['id']}).rstrip('/')
slug = slugify(program['name']) slug = slugify(program['name'])
......
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