Skip to content

Commit

Permalink
fix: 본인 id 와 타인 id 비교하는 로직 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
devFancy committed Oct 26, 2023
1 parent 5f2cae3 commit acf2c9b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ public ResponseEntity<ProfileResponse> findProfileByMemberId(@AuthenticationPrin
@Operation(summary = "other/2", description = "타인 프로필을 조회한다.")
public ResponseEntity<ProfileOtherResponse> findOtherProfileByMemberId(@Parameter(hidden = true) @AuthenticationPrincipal final LoginMember loginMember,
@PathVariable final Long otherMemberId) {
// 로그인한 사용자의 ID와 타인의 프로필 조회 대상 ID 비교
if (loginMember.getId().equals(otherMemberId)) {
throw new InvalidOtherProfileException("자신의 프로필은 다른 방식으로 조회하세요.");
}

ProfileOtherResponse response = profileService.findOtherProfileByMemberId(otherMemberId);

Expand Down

0 comments on commit acf2c9b

Please sign in to comment.