@@ -85,7 +85,7 @@ public ResponseEntity<ApiResponse<CheckPhoneNumberResponse, Void>> duplicatedPho
8585 }
8686
8787 @ Operation (summary = "특정 멤버 가입 신청서 조회" , security = {@ SecurityRequirement (name = "BearerAuth" )})
88- @ PreAuthorize ("hasRole(' ADMIN')" )
88+ @ PreAuthorize ("hasAnyRole('LEAD','ORGANIZER',' ADMIN') or T(inha.gdgoc.domain.user.enums.TeamType).HR == principal.team " )
8989 @ GetMapping ("/recruit/members/{memberId}" )
9090 public ResponseEntity <ApiResponse <SpecifiedMemberResponse , Void >> getSpecifiedMember (
9191 @ PathVariable Long memberId
@@ -100,7 +100,7 @@ public ResponseEntity<ApiResponse<SpecifiedMemberResponse, Void>> getSpecifiedMe
100100 description = "설정하려는 상태(NOT 현재 상태)를 body에 보내주세요. true=입금 완료, false=입금 미완료" ,
101101 security = { @ SecurityRequirement (name = "BearerAuth" ) }
102102 )
103- @ PreAuthorize ("hasRole(' ADMIN')" )
103+ @ PreAuthorize ("hasAnyRole('LEAD','ORGANIZER',' ADMIN') or T(inha.gdgoc.domain.user.enums.TeamType).HR == principal.team " )
104104 @ PatchMapping ("/recruit/members/{memberId}/payment" )
105105 public ResponseEntity <ApiResponse <Void , Void >> updatePayment (
106106 @ PathVariable Long memberId ,
@@ -122,7 +122,7 @@ public ResponseEntity<ApiResponse<Void, Void>> updatePayment(
122122 description = "전체 목록 또는 이름 검색 결과를 반환합니다. 검색어(question)를 주면 이름 포함 검색, 없으면 전체 조회. sort랑 dir은 example 값 그대로 코딩하는 것 추천..." ,
123123 security = { @ SecurityRequirement (name = "BearerAuth" ) }
124124 )
125- @ PreAuthorize ("hasRole(' ADMIN')" )
125+ @ PreAuthorize ("hasAnyRole('LEAD','ORGANIZER',' ADMIN') or T(inha.gdgoc.domain.user.enums.TeamType).HR == principal.team " )
126126 @ GetMapping ("/recruit/members" )
127127 public ResponseEntity <ApiResponse <List <RecruitMemberSummaryResponse >, PageMeta >> getMembers (
128128 @ Parameter (description = "검색어(이름 부분 일치). 없으면 전체 조회" , example = "소연" )
0 commit comments