Skip to content

Commit

Permalink
squash
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnage101 committed Sep 20, 2024
1 parent ddac2a0 commit 23cd813
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions enterprise_catalog/apps/catalog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,9 @@ def _check_content_association_threshold(catalog_query, metadata_list):
def get_restricted_runs_from_discovery(metadata, catalog_query, dry_run=False):
"""
"""
restricted_runs_allowed = catalog_query.restricted_runs_allowed
if not restricted_runs_allowed:
return []
course_keys_for_query = {
get_content_key(metadata) for metadata in metadata
if get_content_type(metadata) == COURSE
Expand Down

0 comments on commit 23cd813

Please sign in to comment.