diff --git a/src/main/java/SuMoC/backend/security/SecurityConfiguration.java b/src/main/java/SuMoC/backend/security/SecurityConfiguration.java index b1ee73c..3db8ee1 100644 --- a/src/main/java/SuMoC/backend/security/SecurityConfiguration.java +++ b/src/main/java/SuMoC/backend/security/SecurityConfiguration.java @@ -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");