Skip to content

Commit c221014

Browse files
committed
[Feat] #248 - 코스 그리기 방문자 모드 처음 부터 접근 제어
1 parent 65d5414 commit c221014

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Runnect-iOS/Runnect-iOS/Presentation/CourseDrawing/VC/CourseDrawingHomeVC.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ extension CourseDrawingHomeVC {
5050
// MARK: - @objc Function
5151
extension CourseDrawingHomeVC {
5252
@objc private func pushToDepartureSearchVC() {
53+
guard UserManager.shared.userType != .visitor else {
54+
self.showToastOnWindow(text: "러넥트에 가입하면 코스를 업로드할 수 있어요.")
55+
56+
analyze(buttonName: GAEvent.Button.clickJoinInCourseDrawing)
57+
return
58+
}
5359

5460
analyze(buttonName: GAEvent.Button.clickCourseDrawing)
5561

Runnect-iOS/Runnect-iOS/Presentation/CourseDrawing/VC/CourseDrawingVC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ extension CourseDrawingVC {
262262
bottomSheetVC.modalPresentationStyle = .overFullScreen
263263
bottomSheetVC.completeButtonTapAction = { [weak self] text in
264264
guard let self = self else { return }
265-
guard handleVisitor() else { return }
265+
guard bottomSheetVC.handleVisitor() else { return } // 사실상 여기까지 못 들어오는게 맞음 (코스 그리기에서 막았다.)
266266
self.courseName = text
267267
self.mapView.capturePathImage()
268268
self.dismiss(animated: false)

0 commit comments

Comments
 (0)