Skip to content

Commit 5259511

Browse files
committed
fix: 발표자가 아닌 사람도 프로필 정보를 볼 수 있도록 수정
1 parent 69782cf commit 5259511

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • app/participant_portal_api/views

‎app/participant_portal_api/views/user.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
UserPortalSerializer,
99
UserPortalSignInSerializer,
1010
)
11-
from rest_framework import decorators, request, response, status, viewsets
11+
from rest_framework import decorators, permissions, request, response, status, viewsets
1212
from user.models import UserExt
1313

1414

@@ -21,7 +21,7 @@ class UserPortalViewSet(viewsets.GenericViewSet):
2121
tags=[OpenAPITag.PARTICIPANT_PORTAL_USER],
2222
responses={status.HTTP_200_OK: UserPortalSerializer},
2323
)
24-
@decorators.action(detail=False, methods=["get"], url_path="me")
24+
@decorators.action(detail=False, methods=["get"], url_path="me", permission_classes=[permissions.IsAuthenticated])
2525
def retrieve_profile(self, request: request.Request, *args: tuple, **kwargs: dict) -> response.Response:
2626
if not request.user.is_authenticated:
2727
return response.Response(status=status.HTTP_401_UNAUTHORIZED)

0 commit comments

Comments
 (0)