Skip to content

Commit

Permalink
feat: adding global staff to allowed users in ccx gradebook
Browse files Browse the repository at this point in the history
  • Loading branch information
alexjmpb committed Mar 20, 2024
1 parent 410cfdd commit 282a7fb
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 282a7fb

Please sign in to comment.