From 282a7fbfe397489dba80196e35b581425016d34c Mon Sep 17 00:00:00 2001 From: alexjmpb Date: Tue, 19 Mar 2024 14:23:08 -0500 Subject: [PATCH] feat: adding global staff to allowed users in ccx gradebook --- lms/djangoapps/grades/rest_api/v1/gradebook_views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lms/djangoapps/grades/rest_api/v1/gradebook_views.py b/lms/djangoapps/grades/rest_api/v1/gradebook_views.py index 7e2cfe4c4698..804d665a347b 100644 --- a/lms/djangoapps/grades/rest_api/v1/gradebook_views.py +++ b/lms/djangoapps/grades/rest_api/v1/gradebook_views.py @@ -230,6 +230,7 @@ def _wrapper_view(self, request, course_id, *args, **kwargs): user_has_gradebook_access = any([ CourseStaffRole(course_key).has_user(request.user), CourseInstructorRole(course_key).has_user(request.user), + request.user.is_staff, ]) if is_ccx_course(course_key) and user_has_gradebook_access: return view(self, request, course_key, *args, **kwargs)