Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lms/djangoapps/discussion/rest_api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ def _get_user_label(self, user_id):
Returns the role label (i.e. "Staff", "Moderator" or "Community TA") for the user
with the given id.
"""
if User.objects.get(id=user_id).is_staff:
return "Staff"
is_staff = user_id in self.context["course_staff_user_ids"]
is_moderator = user_id in self.context["moderator_user_ids"]
is_ta = user_id in self.context["ta_user_ids"]
Expand Down
Loading