Only mark a section as containing gated content if the content is *only* available to full-access learners

This commit is contained in:
Calen Pennington
2020-05-28 15:33:10 -04:00
parent b37be506fe
commit 75a39451b1

View File

@@ -68,4 +68,5 @@ class ContentTypeGateTransformer(BlockStructureTransformer):
[settings.CONTENT_TYPE_GATE_GROUP_IDS['full_access']]
)
block_structure.override_xblock_field(block_key, 'group_access', current_access)
self._set_contains_gated_content_on_parents(block_structure, block_key)
if current_access[CONTENT_GATING_PARTITION_ID] == [settings.CONTENT_TYPE_GATE_GROUP_IDS['full_access']]:
self._set_contains_gated_content_on_parents(block_structure, block_key)