Skip to content

Commit

Permalink
Merge pull request #57 from PowerSupply-ES/develop
Browse files Browse the repository at this point in the history
fix: 문자열 비교 형식 변경
  • Loading branch information
byeon22 authored Oct 2, 2024
2 parents 0eec8d3 + 27762db commit 2ab177c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public ResponseEntity<?> deleteNotice(Long noticeId) {
MemberEntity admin = memberRepository.findById(id)
.orElseThrow(() -> new AppException(ErrorCode.NOT_FOUND, "해당 memberId가 없습니다."));

if (admin.getMemberStatus() != "관리자") {
if (!admin.getMemberStatus().equals("관리자")) {
throw new AppException(ErrorCode.FORBIDDEN, "관리자가 아닙니다.");
} else {
NoticeEntity noticeEntity = noticeRepository.findById(noticeId)
Expand Down

0 comments on commit 2ab177c

Please sign in to comment.