Updates the description provided for a new enrollment report
https://github.com/edx/edx-platform/pull/9345
This commit is contained in:
@@ -457,15 +457,18 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
|
||||
"""Gets a list of all course enrollments for a user.
|
||||
|
||||
Returns a list for the currently logged in user, or for the user named by the 'user' GET
|
||||
parameter. If the username does not match the currently logged in user, only courses the
|
||||
requesting user has staff permissions for are listed.
|
||||
parameter. If the username does not match that of the currently logged in user, only
|
||||
courses for which the currently logged in user has the Staff or Admin role are listed.
|
||||
As a result, a course team member can find out which of his or her own courses a particular
|
||||
learner is enrolled in.
|
||||
|
||||
Only staff or instructor permissions on individual courses are taken into account when
|
||||
deciding whether the requesting user is permitted to see a particular enrollment, i.e.
|
||||
organizational staff access doesn't grant permission to see the enrollments in all courses
|
||||
of the organization. This may change in the future.
|
||||
Only the Staff or Admin role (granted on the Django administrative console as the staff
|
||||
or instructor permission) in individual courses gives the requesting user access to
|
||||
enrollment data. Permissions granted at the organizational level do not give a user
|
||||
access to enrollment data for all of that organization's courses.
|
||||
|
||||
However, users with global staff access can see all enrollments of all students.
|
||||
Users who have the global staff permission can access all enrollment data for all
|
||||
courses.
|
||||
"""
|
||||
username = request.GET.get('user', request.user.username)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user