release/2025-02-19-18-15
This commit is contained in:
parent
cbf07c799a
commit
97d2076830
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user