fix: Stop rendering Visibility and Move buttons on libraries 2
* Revert "Revert "fix: Stop rendering Visibility and Move buttons on libraries (#26885)" (#27113)"
This reverts commit 23443c4376.
* fix: change method of accessing course id
This commit is contained in:
@@ -294,10 +294,10 @@ def _studio_wrap_xblock(xblock, view, frag, context, display_name_only=False):
|
||||
'is_root': is_root,
|
||||
'is_reorderable': is_reorderable,
|
||||
'can_edit': context.get('can_edit', True),
|
||||
'can_edit_visibility': context.get('can_edit_visibility', True),
|
||||
'can_edit_visibility': context.get('can_edit_visibility', xblock.scope_ids.usage_id.context_key.is_course),
|
||||
'selected_groups_label': selected_groups_label,
|
||||
'can_add': context.get('can_add', True),
|
||||
'can_move': context.get('can_move', True),
|
||||
'can_move': context.get('can_move', xblock.scope_ids.usage_id.context_key.is_course),
|
||||
'language': getattr(course, 'language', None)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user