diff --git a/cms/djangoapps/contentstore/config/waffle_utils.py b/cms/djangoapps/contentstore/config/waffle_utils.py index 33d2959dc78acd1fac386ae801c2a107a092eb78..eb107198ab19e2dedaeb849742747e044bd755af 100644 --- a/cms/djangoapps/contentstore/config/waffle_utils.py +++ b/cms/djangoapps/contentstore/config/waffle_utils.py @@ -4,15 +4,13 @@ from cms.djangoapps.contentstore.config.waffle import waffle, ENABLE_CHECKLISTS_ from student.roles import GlobalStaff -def should_show_checklists_page(requesting_user): +def should_show_checklists_page(): """ Determine if the ENABLE_CHECKLISTS_PAGE waffle switch is set - and if the user is able to see it """ if waffle().is_enabled(ENABLE_CHECKLISTS_PAGE): - if GlobalStaff().has_user(requesting_user): - return True + return True return False diff --git a/cms/templates/course_outline.html b/cms/templates/course_outline.html index b5dfd0e2197fe5bb53707b027b8246b97fa5e9d7..e11936ecf6a9d0be83e261f0daa0842145e43c87 100644 --- a/cms/templates/course_outline.html +++ b/cms/templates/course_outline.html @@ -180,7 +180,7 @@ from openedx.core.djangolib.markup import HTML, Text % endif </div> <div class="status-highlights-enabled"></div> - % if should_show_checklists_page(request.user): + % if should_show_checklists_page(): <div class="status-checklist"> <%static:studiofrontend entry="courseOutlineHealthCheck"> { diff --git a/cms/templates/widgets/header.html b/cms/templates/widgets/header.html index 94e695bb0fdce789750b4c9732d42e4750cf8be8..8d2867d02c846b55c823967f9c6ca24d538dacb3 100644 --- a/cms/templates/widgets/header.html +++ b/cms/templates/widgets/header.html @@ -127,7 +127,7 @@ <a href="${reverse('export_git', kwargs=dict(course_key_string=unicode(course_key)))}">${_("Export to Git")}</a> </li> % endif - % if should_show_checklists_page(request.user): + % if should_show_checklists_page(): <li class="nav-item nav-course-tools-checklists"> <a href="${checklists_url}">${_("Checklists")}</a> </li>