Merge branch 'main' into route_alternatives
# Conflicts: # src/main/java/SuMoC/backend/security/SecurityConfiguration.java # src/main/java/SuMoC/backend/user/models/User.java # src/main/resources/application.properties
This commit is contained in:
@@ -98,6 +98,11 @@ public class SecurityConfiguration {
|
||||
auth.requestMatchers("/friendship/**").hasAnyRole("ADMIN", "USER");
|
||||
auth.requestMatchers("/trip/**").hasAnyRole("USER", "ADMIN");
|
||||
auth.requestMatchers("/geocoding/**").hasAnyRole("USER", "ADMIN");
|
||||
|
||||
// gamification
|
||||
auth.requestMatchers("/badges/**").hasAnyRole("ADMIN", "USER");
|
||||
auth.requestMatchers("/leaderboard/**").hasAnyRole("ADMIN", "USER");
|
||||
|
||||
auth.requestMatchers("/notifications/**").hasAnyRole("USER", "ADMIN");
|
||||
//auth.requestMatchers("/error").permitAll();
|
||||
auth.anyRequest().authenticated();
|
||||
|
||||
Reference in New Issue
Block a user