fix traversal bug and keep current behavior as default
This commit is contained in:
@@ -26,7 +26,7 @@ def get_blocks(
|
||||
student_view_data=None,
|
||||
return_type='dict',
|
||||
block_types_filter=None,
|
||||
hide_access_denials=False,
|
||||
hide_access_denials=True,
|
||||
):
|
||||
"""
|
||||
Return a serialized representation of the course blocks.
|
||||
|
||||
@@ -37,7 +37,4 @@ class AccessDeniedMessageFilterTransformer(BlockStructureTransformer):
|
||||
message = block_structure.get_xblock_field(block_key, 'authorization_denial_message')
|
||||
return reason and message
|
||||
|
||||
for _ in block_structure.post_order_traversal(
|
||||
filter_func=block_structure.create_removal_filter(_filter)
|
||||
):
|
||||
pass
|
||||
block_structure.remove_block_traversal(_filter)
|
||||
|
||||
Reference in New Issue
Block a user