Skip to content

Commit b15f76c

Browse files
committed
fix: remove static username
1 parent 30fb88b commit b15f76c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • lms/djangoapps/course_home_api/outline

lms/djangoapps/course_home_api/outline/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def get(self, request, *args, **kwargs): # pylint: disable=too-many-statements
216216
try:
217217
User = get_user_model()
218218
# If the masqueraded user does not exist, we will continue with the original user object.
219-
username = masquerade_object.user_name or 'audit'
219+
username = masquerade_object.user_name
220220
user = User.objects.get(username=username)
221221
except User.DoesNotExist:
222222
pass

0 commit comments

Comments
 (0)