From 75a39451b13c19d94775ccd05e24c101e45693a9 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Thu, 28 May 2020 15:33:10 -0400 Subject: [PATCH] Only mark a section as containing gated content if the content is *only* available to full-access learners --- openedx/features/content_type_gating/block_transformers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openedx/features/content_type_gating/block_transformers.py b/openedx/features/content_type_gating/block_transformers.py index cfd4734b47..db88164f75 100644 --- a/openedx/features/content_type_gating/block_transformers.py +++ b/openedx/features/content_type_gating/block_transformers.py @@ -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)