Skip to content

Commit

Permalink
Merge pull request #120 from Pearson-Advance/vue/PADV-1134
Browse files Browse the repository at this point in the history
PADV 1134 - Global staff and superusers should have access to the CCX gradebook.
  • Loading branch information
alexjmpb authored Mar 20, 2024
2 parents 410cfdd + 282a7fb commit 79e4bd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lms/djangoapps/grades/rest_api/v1/gradebook_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 79e4bd2

Please sign in to comment.