Skip to content

Commit

Permalink
Merge pull request Hexlet#154 from anasasiia/dont-show-workspaces-page
Browse files Browse the repository at this point in the history
fix Hexlet#152 don't show workspaces page to unauthorized users
  • Loading branch information
fey authored May 22, 2023
2 parents 3210f9e + 44d493f commit 52fb2d8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public SecurityFilterChain filterChain(HttpSecurity http,

http.authorizeHttpRequests(authz -> authz
.requestMatchers(GET, "/webjars/**", "/widget/**", "/img/**").permitAll()
.requestMatchers("/", "/workspaces", "/login", "/signup", "/error").permitAll()
.requestMatchers("/", "/login", "/signup", "/error").permitAll()
.anyRequest().authenticated()
)
.formLogin(login -> login
Expand Down

0 comments on commit 52fb2d8

Please sign in to comment.