Skip to content

Commit

Permalink
hotfix: 시큐리티 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
taeseokyang authored Feb 23, 2024
1 parent 3741327 commit 30c74c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/land/leets/global/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {

.requestMatchers("/interview").permitAll()

.requestMatchers("/portfolios/**").permitAll()
.requestMatchers("/images/**").permitAll()

.requestMatchers(HttpMethod.GET, "/application").hasAuthority(AuthRole.ROLE_ADMIN.getRole())
.requestMatchers(HttpMethod.POST, "/application").hasAuthority(AuthRole.ROLE_USER.getRole())
.requestMatchers(HttpMethod.PATCH, "/application").hasAuthority(AuthRole.ROLE_USER.getRole())
Expand All @@ -86,6 +83,9 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {

.requestMatchers(HttpMethod.POST, "/mail/**").hasAuthority(AuthRole.ROLE_ADMIN.getRole())

.requestMatchers("/portfolios/**").permitAll()
.requestMatchers("/images/**").permitAll()

.anyRequest().authenticated();

//oauth2Login
Expand Down

0 comments on commit 30c74c8

Please sign in to comment.