This commit is contained in:
@@ -92,9 +92,9 @@ public class SecurityConfiguration {
|
||||
auth.requestMatchers(HttpMethod.OPTIONS, "/**").permitAll();
|
||||
auth.requestMatchers("/dev/**").permitAll();
|
||||
auth.requestMatchers("/logs").permitAll();
|
||||
auth.requestMatchers("/routing/alternative/**").permitAll();
|
||||
auth.requestMatchers("/auth/user/**").permitAll();
|
||||
auth.requestMatchers("/routing/directions/**").permitAll();
|
||||
auth.requestMatchers("/routing/alternative/**").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");
|
||||
|
||||
Reference in New Issue
Block a user