Skip to content

Commit 729211f

Browse files
authored
Hotfix: 과릿 1.4.3 (#490)
* Hotfix: application.yml 오류 수정 (#482) * Hotfix: Lecture 생성 오류 수정 (#482) * Hotfix: Lecture 생성 오류 수정 (#482) * Hotfix: Lecture 생성 오류 수정 (#482) * Hotfix: Lecture 생성 오류 수정 (#482) * Hotfix: Lecture 생성 오류 수정 (#482) * Hotfix: 일정 반환 API 오류 수정 (#482) * Hotfix: 게시판 등록 API 권한 오류 수정 (#482)
1 parent 4935a27 commit 729211f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api-module/src/main/java/com/selfrunner/apimodule/application/board/BoardService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ && checkFileCapacity(memberAndLecture.getLecture().getLectureId(), multipartFile
8080
Board board = Board.builder()
8181
.lecture(memberAndLecture.getLecture())
8282
.member(member)
83-
.isPublic(!postBoardReq.getIsPublic()) // 클라이언트와 서버 간 동작 방식 반대로 설정하여 임의적으로 not 적용
83+
.isPublic(member.getType().equals(MemberType.TEACHER) ? Boolean.TRUE : !postBoardReq.getIsPublic()) // 클라이언트와 서버 간 동작 방식 반대로 설정하여 임의적으로 not 적용
8484
.lessonId(postBoardReq.getLessonId())
8585
.title(postBoardReq.getTitle())
8686
.body(postBoardReq.getBody())

0 commit comments

Comments
 (0)