Skip to content

Commit 473ad42

Browse files
authored
deploy 1.7.1
배포 1.7.1
2 parents 1caf486 + f7173ab commit 473ad42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/day_walk/backend/domain/course/service/CourseService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public GetCourseDto getCourse(UUID courseId, UUID userId) {
112112
throw new CustomException(ErrorCode.COURSE_NOT_FOUND);
113113
} else if (courseEntity.isHasDelete()) {
114114
throw new CustomException(ErrorCode.COURSE_DELETE_TRUE);
115-
} else if (!courseEntity.isVisible()) {
115+
} else if (!courseEntity.isVisible() && courseEntity.getUserId() != userId) {
116116
throw new CustomException(ErrorCode.COURSE_VISIBLE_FALSE);
117117
}
118118

0 commit comments

Comments
 (0)