gestion perm role employe

This commit is contained in:
mepiphana2023
2025-07-16 12:12:55 +02:00
parent c0f86d1c3f
commit 682de82447

View File

@@ -37,6 +37,7 @@ public class SecurityConfig {
.csrf(AbstractHttpConfigurer::disable)
.authorizeHttpRequests(auth -> auth
.requestMatchers("/api/auth/login").permitAll()
.requestMatchers("/api/clients/**").hasRole("EMPLOYE")
.anyRequest().authenticated()
)
.sessionManagement(sess -> sess.sessionCreationPolicy(SessionCreationPolicy.STATELESS))