Commit 6ce7a60c by Sven Marnach

Clarify docstring of the enrollment list endpoint of the Enrollment API.

parent 43779814
...@@ -459,6 +459,13 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn): ...@@ -459,6 +459,13 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
Returns a list for the currently logged in user, or for the user named by the 'user' GET 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 parameter. If the username does not match the currently logged in user, only courses the
requesting user has staff permissions for are listed. requesting user has staff permissions for are listed.
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.
However, users with global staff access can see all enrollments of all students.
""" """
username = request.GET.get('user', request.user.username) username = request.GET.get('user', request.user.username)
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment