Skip to content

Commit

Permalink
Add user auth to platform proxy route (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang authored Sep 12, 2023
1 parent 7291d8e commit 06b125d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/portal/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
class UserInfo(APIView):
"""Returns User information"""

permission_classes = [IsAuthenticated]

def get(self, request):
return Response({"user": get_user_info(request.user)})

Expand Down

0 comments on commit 06b125d

Please sign in to comment.