allow geocoding from non logged in users

This commit is contained in:
2026-02-10 13:34:49 +01:00
parent b95355c10f
commit 18e8d10f6b
@@ -95,11 +95,11 @@ public class SecurityConfiguration {
auth.requestMatchers("/auth/user/**").permitAll();
auth.requestMatchers("/routing/directions/**").permitAll();
auth.requestMatchers("/routing/alternative/**").permitAll();
auth.requestMatchers("/geocoding/**").permitAll();
auth.requestMatchers("/admin/**").hasRole("ADMIN"); //looks for "ROLE_ADMIN" //alternative: hasAuthoritiy("ADMIN")
auth.requestMatchers("/user/**").hasAnyRole("ADMIN", "USER");
auth.requestMatchers("/friendship/**").hasAnyRole("ADMIN", "USER");
auth.requestMatchers("/trip/**").hasAnyRole("USER", "ADMIN");
auth.requestMatchers("/geocoding/**").hasAnyRole("USER", "ADMIN");
auth.requestMatchers("/routing/alternative/carrousel/**").hasAnyRole("USER", "ADMIN");
auth.requestMatchers("/routing/preferences/**").hasAnyRole("USER", "ADMIN");