Commit 97687dd1 authored by Lucia Lopuchova's avatar Lucia Lopuchova Committed by cizek
Browse files

Fix security config on stands

parent ca5ab344
......@@ -22,6 +22,7 @@ import java.util.Optional;
import static cz.fi.muni.pa165.flea.market.manager.config.PathsConfig.MARKET_EVENT;
import static cz.fi.muni.pa165.flea.market.manager.config.PathsConfig.SESSION;
import static cz.fi.muni.pa165.flea.market.manager.config.PathsConfig.STAND;
import static cz.fi.muni.pa165.flea.market.manager.config.PathsConfig.USER;
/**
......@@ -61,6 +62,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
.antMatchers(HttpMethod.GET, API_DOCS + "/*").permitAll()
.antMatchers(HttpMethod.GET, API_DOCS).permitAll()
.antMatchers(HttpMethod.GET, MARKET_EVENT + "/list").permitAll()
.antMatchers(HttpMethod.GET, STAND).permitAll()
.anyRequest().authenticated()
.and()
.addFilterBefore(authFilter, UsernamePasswordAuthenticationFilter.class);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment