Skip to content
Snippets Groups Projects
Commit 75a39451 authored by Calen Pennington's avatar Calen Pennington
Browse files

Only mark a section as containing gated content if the content is *only*...

Only mark a section as containing gated content if the content is *only* available to full-access learners
parent b37be506
Branches
Tags
No related merge requests found
......@@ -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)
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