Skip to content

Commit

Permalink
Update SecurityConfig.java
Browse files Browse the repository at this point in the history
  • Loading branch information
tigris24 committed Sep 25, 2024
1 parent 70483c3 commit 7864f4e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/echall/platform/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
/**
* Need To Activate DEVELOPER on DEPLOY SETTING
*/
// // Can access only DEVELOPER
// .requestMatchers("/api/token").hasRole("DEVELOPER")
// .requestMatchers("/swagger-ui/**").hasRole("DEVELOPER")
// .requestMatchers("/api-info/**").hasRole("DEVELOPER")
// Can access only DEVELOPER
.requestMatchers("/api/token").hasRole("DEVELOPER")
.requestMatchers("/swagger-ui/**").hasRole("DEVELOPER")
.requestMatchers("/api-info/**").hasRole("DEVELOPER")

.anyRequest().permitAll();
});
Expand Down Expand Up @@ -138,4 +138,4 @@ public CorsConfigurationSource corsConfigurationSource() {
source.registerCorsConfiguration("/**", corsConfiguration);
return source;
}
}
}

0 comments on commit 7864f4e

Please sign in to comment.