Skip to content

Commit 48477c8

Browse files
[BE-157] 권한 변경 API 관리자만 허용 (#407)
* [fix]: 권한 변경 API 관리자만 허용 * [style]: spotless
1 parent 817d20a commit 48477c8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

server/Recruit-Api/src/main/java/com/econovation/recruit/api/config/security/SecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
9797
.hasAnyRole("ROLE_OPERATION", "ROLE_PRESIDENT")
9898
.mvcMatchers(HttpMethod.GET, "/api/v1/comments/disclosure")
9999
.hasAnyRole("ROLE_OPERATION", "ROLE_PRESIDENT")
100+
.mvcMatchers(HttpMethod.PUT, "/api/v1/interviewers/*/roles")
101+
.hasAnyRole("ROLE_OPERATION")
100102
.anyRequest()
101103
.hasAnyRole(RolePattern);
102104

server/Recruit-Api/src/main/java/com/econovation/recruit/api/user/service/UserService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private boolean checkPassword(String password, String encodePassword) {
106106
@Transactional
107107
public void signUp(SignUpRequestDto signUpRequestDto) {
108108
String email = signUpRequestDto.getEmail();
109-
// checkEmailVerified(email);
109+
// checkEmailVerified(email);
110110
if (interviewerLoadPort.loadOptionalInterviewerByEmail(email).isPresent())
111111
throw InterviewerAlreadySubmitException.EXCEPTION;
112112
String encededPassword = passwordEncoder.encode(signUpRequestDto.getPassword());
@@ -119,7 +119,7 @@ public void signUp(SignUpRequestDto signUpRequestDto) {
119119
.role(Role.ROLE_GUEST)
120120
.build();
121121
interviewerRecordPort.save(interviewer);
122-
// deleteVerifiedCode(email);
122+
// deleteVerifiedCode(email);
123123
}
124124

125125
@Override

0 commit comments

Comments
 (0)