From 4ed8dde21c4552dfbf15e15f2ee69a79c0496d08 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Mon, 13 Feb 2023 16:12:04 -0500 Subject: [PATCH] fix: add missing variables to library_listing context (#31752) --- cms/djangoapps/contentstore/views/course.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cms/djangoapps/contentstore/views/course.py b/cms/djangoapps/contentstore/views/course.py index cf8eaf3b79..7a39567869 100644 --- a/cms/djangoapps/contentstore/views/course.py +++ b/cms/djangoapps/contentstore/views/course.py @@ -617,7 +617,9 @@ def library_listing(request): 'allow_course_reruns': settings.FEATURES.get('ALLOW_COURSE_RERUNS', True), 'rerun_creator_status': GlobalStaff().has_user(request.user), 'split_studio_home': split_library_view_on_dashboard(), - 'active_tab': 'libraries' + 'active_tab': 'libraries', + 'allowed_organizations': get_allowed_organizations(request.user), + 'can_create_organizations': user_can_create_organizations(request.user), } return render_to_response('index.html', data)