Skip to content

Commit

Permalink
Add user auth to platform proxy route
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang committed Sep 10, 2023
1 parent 660fdf8 commit 2d4b2d6
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 2d4b2d6

Please sign in to comment.