Skip to content

Commit

Permalink
#555 [fix] 글모임 권한 확인 관련 로직 수정
Browse files Browse the repository at this point in the history
#555 [fix] 글모임 권한 확인 관련 로직 수정
  • Loading branch information
sohyundoh authored Oct 29, 2024
2 parents 04056b4 + 9bae867 commit 07353c3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,13 @@ public MoimAuthenticateResponse getAuthenticateUserOfMoim(
final Long moimId,
final HashMap<Long, WriterNameInfo> writerNameMap
) {

final boolean isMember = writerNameMap.containsKey(moimId);
return MoimAuthenticateResponse.of(
//멤버인지
writerNameMap.containsKey(moimId),
isMember,
//Owner인지
writerNameMap.get(moimId).moimRole().equals(MoimRole.OWNER)
isMember && writerNameMap.get(moimId).moimRole().equals(MoimRole.OWNER)
);
}

Expand Down

0 comments on commit 07353c3

Please sign in to comment.