Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lms/djangoapps/learner_dashboard/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ def render_to_fragment(self, request, program_uuid, **kwargs):

meter = ProgramProgressMeter(request.site, request.user, uuid=program_uuid)
program_data = meter.programs[0]

if not program_data:
if not program_data or program_data.get('status', '') == 'unpublished':
raise Http404

try:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def get_site_program_uuids(self, client, site):
try:
querystring = {
'exclude_utm': 1,
'status': ('active', 'retired'),
'status': ('active', 'retired', 'unpublished'),
'uuids_only': 1,
}

Expand Down