Skip to content

Commit 5ea2673

Browse files
committed
fix: 참가자 포탈에서 유저 정보가 노출되지 않던 문제 수정
1 parent f86cfad commit 5ea2673

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/participant_portal_api/serializers/presentation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ def to_representation(self, instance):
7777
result = super().to_representation(instance)
7878

7979
if (current_user := get_current_user()) and (speakers := result.get("speakers")):
80-
result["speakers"] = [s for s in speakers if s["user"] == current_user.pk]
80+
result["speakers"] = [s for s in speakers if s["user"]["id"] == current_user.pk]
81+
else:
82+
result["speakers"] = []
8183

8284
return result
8385

0 commit comments

Comments
 (0)