From 2d4b2d6e837ecccde03ed366e8198dbaff428dd2 Mon Sep 17 00:00:00 2001 From: Justin Zhang Date: Sun, 10 Sep 2023 12:23:46 -0400 Subject: [PATCH] Add user auth to platform proxy route --- backend/portal/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/portal/views.py b/backend/portal/views.py index fe893bac..cf026770 100644 --- a/backend/portal/views.py +++ b/backend/portal/views.py @@ -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)})