release/2025-02-19-18-15

This commit is contained in:
geniy 2025-02-19 18:15:25 +03:00
parent cbf07c799a
commit 97d2076830

View File

@ -25,10 +25,9 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
http
.csrf().disable()
.authorizeRequests()
.antMatchers("/api/employee/**").hasAnyAuthority("ROLE_EMPLOYEE", "ROLE_ADMIN")
/*.antMatchers("/api/employee/**").hasAnyAuthority("ROLE_EMPLOYEE", "ROLE_ADMIN")*/
.antMatchers("/api/admin/**").hasAuthority("ROLE_ADMIN")
/*
.antMatchers("url").permitAll()
/*.antMatchers("url").permitAll()
.antMatchers("url").hasAuthority("ROLE_ADMIN")*/
.anyRequest().authenticated()
.and()