Skip to content
Snippets Groups Projects
Unverified Commit 2379f1ca authored by Jansen Kantor's avatar Jansen Kantor Committed by GitHub
Browse files

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 23443c43.

* fix: change method of accessing course id
parent 3e6b3e41
No related branches found
Tags release-2018-02-14-11.33
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment