Skip to content

Commit

Permalink
[COT-176] Hotfix: 교육과 연결된 세션 목록 접근 권한 해제 (#279)
Browse files Browse the repository at this point in the history
* chore: remove main method

* hotfix: permit access
  • Loading branch information
Youthhing committed Jan 22, 2025
1 parent bd2c711 commit dfea804
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,10 @@ public ResponseEntity<List<SessionListResponse>> findSessionsByGenerationId(@Req
}

@Operation(summary = "CS ON인 세션 목록 반환 API", description = "세션과 교육 연계 제거 시 삭제 예정")
@RoleAuthority(MemberRole.MANAGER)
@GetMapping("/cs-on")
public ResponseEntity<List<CsEducationOnSessionNumberResponse>> findAllCsOnSessionsByGenerationId(
@RequestParam Long generationId) {
return ResponseEntity.status(HttpStatus.OK)
.body(sessionService.findAllNotLinkedCsOnSessionsByGenerationId(generationId));
return ResponseEntity.status(HttpStatus.OK).body(sessionService.findAllNotLinkedCsOnSessionsByGenerationId(generationId));
}

@Operation(summary = "Session 추가 API")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,4 @@ private boolean isAuthPath(String requestURI) {
AntPathMatcher pathMatcher = new AntPathMatcher();
return pathMatcher.match(AUTH_PATH, requestURI) || pathMatcher.match(LOGIN_PATH, requestURI);
}

public static void main(String[] args) {
AntPathMatcher pathMatcher = new AntPathMatcher();
System.out.println(pathMatcher.match(AUTH_PATH, "/v1/api/auth/join"));
}
}

0 comments on commit dfea804

Please sign in to comment.