Skip to content

Commit

Permalink
Feat(#54): 사용자가 온보딩 때 선택한 지역이 아닌 커뮤니티 지역에서는 글을 작성할 수 없다.
Browse files Browse the repository at this point in the history
  • Loading branch information
versatile0010 committed Nov 17, 2023
1 parent 7099a10 commit cda5e3c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public void validateLocation(Member member, String realLocation) {
.stream().map(NotificationRegion::getLv2).toList();
String[] realRegions = realLocation.split(" ");

if (realRegions.length > 1 && !regionLv2List.contains(realRegions[1])) {
if (realRegions.length >= 1 && !regionLv2List.contains(realRegions[1])) {
throw new UnauthorizedLocationException();
}
}
Expand Down

0 comments on commit cda5e3c

Please sign in to comment.