Skip to content

Commit

Permalink
hotfix : 모임에 해당하는 공지사항 전체조회 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bo-ram-bo-ram authored Sep 17, 2024
1 parent 3a49f33 commit b1363cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private boolean checkOwner(Long userId, Long moimId) {

private boolean isUserAppliedToMoim(Long moimId, Long guestId) {
if ((moimRepository.findMoimByIdOrThrow(moimId).getHost().getUser())
.equals(guestRepository.findGuestByIdOrThrow(guestId).getUser().getId())) {
.equals(guestRepository.findGuestByIdOrThrow(guestId).getUser())) {
return true;
} else if (moimSubmissionRepository.existsByMoimIdAndGuestId(moimId, guestId)) {
MoimSubmission moimSubmission = moimSubmissionRepository.findByMoimIdAndGuestId(moimId, guestId);
Expand All @@ -92,4 +92,4 @@ private boolean canAccessNotice(Notice notice, boolean isUserApplied) {
// 공개 공지사항이면 누구나 접근 가능하고, 비공개 공지사항이면 모임에 신청한 사람만 접근 가능
return !notice.isPrivate() || isUserApplied;
}
}
}

0 comments on commit b1363cb

Please sign in to comment.